Each presenter will receive an instance of the Coordinator. When the presenter has finished or cancelled it's task it will notify the coordinator, who will then decided what view to present next.
- [Instructor] Before we dive into our view controllers,…it looks like we have to correct this…so that it's not using the instance,…but it's using the class navigation coordinator.…Let's go ahead and jump into…our spy list view controller.…So all we're going to do is replace…some of those maker methods with…this navigation coordinator.…We'll come in here, we'll say,…weak var n: NavigationCoordinator.…We're making it weak, so that we don't have…any retention cycle of this coordinator…owning this view controller,…owning this coordinator.…
We'll just keep it weak and optional.…Again, we don't need…this detailViewControllerMaker method anymore.…The spyCellMaker method I'm going to keep in here…because I feel like it really is part of…the list, the cell is.…And it's really up to you and your team…where you draw those lines or those barriers.…Let's go ahead and remove this argument.…And, we'll actually just copy this piece here.…And then, instead of this signing now,…I'll say self.navigationCoordinator is equal to…the one passed in.…
Author
Released
6/27/2017- Moving pieces of architecture
- Designing an MVA app
- Walking through a demo application
- Converting to MVP
- Moving non-view logic to a presenter
- Breaking logic into layers
- Using entities
- Setting up dependency injection
- Implementing the coordination pattern
- Adding data binding with RxSwift
Skill Level Intermediate
Duration
Views
Related Courses
-
Introduction
-
Welcome48s
-
-
1. Moving Pieces of Architecture
-
Why architecture?3m 32s
-
Architecture pieces2m 19s
-
Common architectures3m 42s
-
-
2. Demo Application Walkthrough
-
UI overview41s
-
Code overview1m 18s
-
Load data2m 51s
-
-
3. Convert to MVP
-
Create presenter3m 14s
-
Create presenter, part 23m 28s
-
Create presenter, part 32m 36s
-
Create presenter, part 43m 21s
-
-
4. Expand Layers
-
Expand layers5m 59s
-
Expand layers, part 24m 14s
-
Entities2m 49s
-
-
5. Dependency Injection
-
Swinject overview6m 27s
-
Swinject storyboard3m 14s
-
Presenter conversion5m 45s
-
Protocol injection8m 53s
-
-
6. Navigation Coordinators
-
Coordinator walkthrough3m 15s
-
-
7. Data Binding
-
RxSwift – observables11m 15s
-
RxCocoa – data binding6m 46s
-
-
Conclusion
-
Next steps42s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Presenter to coordinator communication