From the course: iOS App Development: Design Patterns for Mobile Architecture

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Create presenter, part 3

Create presenter, part 3

From the course: iOS App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

Create presenter, part 3

- [Narrator] The next step is to put presenter in the secret details view. First let's go over here to the detailed view controller, create that class for the detail presenter, and then we'll say new file, new swift file, detail presenter, come back and we'll just cut and paste this class over to that next one, and then coming back, let's expand the secret details and go into the view controller, and we'll just make our class at the top again, class secret details presenter and in here, I'll say, we're going to have that spy... in fact, I'll just cut this line, and the other property that we're going to be using is the password on that spy, so we'll save our password, it's a string, and we'll just say return spy.password and then we'll make that a init method again, and we'll say we're taking in a spy, and we'll say self.spy is equal to the spy and then in here, let's just make sure that we have that presenter, file private, var presenter, equals to a secret details presenter, and we…

Contents