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.
Subscribe to Cocoacasts Plus to watch this episode.
Mastering Navigation With Coordinators
The Model-View-ViewModel-Coordinator Pattern
by Bart Jacobs in Patterns
Swift 4
Xcode 10
iOS 12
Mastering Navigation With Coordinators
-
08:11
-
2 Adopting the Coordinator Pattern
09:19
-
4 Navigating With a Coordinator
10:26
-
5 Adding Flexibility and Dynamism
12:36
-
12 Storyboards, XIBs, and Code
05:35
-
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