You can watch this episode by subscribing to Cocoacasts Plus.
Mastering Navigation With Coordinators
The Model-View-ViewModel-Coordinator Pattern
1 | What Is a Coordinator 08:11 |
---|---|
2 | Adopting the Coordinator Pattern 09:19 |
3 | Instantiating View Controllers From a Storyboard 09:05 |
4 | Navigating With a Coordinator 10:26 |
5 | Adding Flexibility and Dynamism 12:36 |
6 | Managing Subflows With Child Coordinators 10:51 |
7 | Reducing Complexity With Child Coordinators 09:38 |
8 | Working With Navigation Controllers 12:00 |
9 | Managing Horizontal and Vertical Flows 10:57 |
10 | Switching Between Horizontal and Vertical Flows 11:35 |
11 | Combining Horizontal and Vertical Flows 10:02 |
12 | Storyboards, XIBs, and Code 05:35 |
13 | Dependency Injection and the Coordinator Pattern 08:27 |
14 | Working With Tab Bar Controllers 10:19 |
15 | The Model-View-ViewModel-Coordinator Pattern 11:02 |
16 | MVVM-C and Separation of Concerns 06:32 |
17 | Choosing Between Closures and Delegation 08:21 |
Earlier in this series, I mentioned that the coordinator pattern works well with the Model-View-ViewModel pattern. The resulting pattern is commonly referred to as MVVM-C or the Model-View-ViewModel-Coordinator pattern. In this episode, we refactor the PhotosViewController
class. It currently uses the Model-View-Controller pattern. We update the implementation of the PhotosViewController
class to use the Model-View-ViewModel pattern instead. I won't cover the details of the MVVM pattern in this episode, though. The MVVM pattern is covered in detail in Mastering MVVM With Swift.
Instant and Unlimited Access
to 500+ Cocoacasts Tutorials
Monthly
$19 / month
Pay Once a Month
30 Day Money Back Guarantee
Yearly
$8.25 / month (billed annually)
Pay Once a Year and Save $129
30 Day Money Back
Guarantee