Before we continue populating the user interface of the feed view controller, we need to resolve an issue we introduced in the previous episode. The feed view controller asks its view model for an Episode
object every time it needs to configure an episode collection view cell. The project adopts the Model-View-ViewModel pattern, which means that the view controller should not have direct access to model objects. In this episode, I show you a simple solution to hide the Episode
object from the feed view controller.
Subscribe to Cocoacasts Plus to watch this episode.
From Zero to App Store
Populating the Feed: Conforming to the MVVM Pattern
by Bart Jacobs in Programming
Swift 5
Xcode 11
iOS 13
From Zero to App Store
-
03:31
-
10:30
-
13:26
-
9 Adopting the Coordinator Pattern
13:15
-
14 Populating the Feed: Conforming to the MVVM Pattern
06:34