You can watch this episode by subscribing to Cocoacasts Plus.

From Zero to App Store

Populating the Feed: Conforming to the MVVM Pattern

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.

Purchase Course

Purchase From Zero to App Store and access it whenever you want and for as long as you want.

Join Cocoacasts Plus

Join Cocoacasts Plus and access every 350+ tutorials including From Zero to App Store.

Next Episode "Populating the Feed: Displaying SVG Images With Cloudinary and Kingfisher"