As you learned in Chapter 13, Getting Started with MVC and Collection Views, a common design pattern for iOS Apps is MVC. To recap, MVC divides an app into three different parts:
- Model: This handles data storage, representation, and data processing tasks.
- View: This is anything that is on the screen that the user can interact with.
- Controller: This manages the flow of information between model and view.
Let's look at the design of the Explore screen that you saw during the app tour:
Now, build and run your app, and the EXPLORE screen will look like the following:
As you can see, all of the cells are currently empty. Based on the MVC design pattern, you have completed the implementation of the views (collection view section header and collection view) and the controller (ExploreViewController). Now, you will add model objects that will provide...