15

Getting Data into Collection Views

In the previous chapter, you learned about the Model-View-Controller (MVC) design pattern and about collection views. You’ve also revisited the Explore and Restaurant List screens, and you have seen how the collection views on both screens work. At this point, though, both screens just display cells that do not contain any data. As shown in the app tour in Chapter 10, Setting Up the User Interface, the Explore screen should display a list of cuisines, and the Restaurant List screen should display a list of restaurants.

In this chapter, you’re going to implement the model objects for the Explore screen to make it display a list of cuisines. You’ll start by learning about model objects that you will use. Next, ...

Get iOS 16 Programming for Beginners - Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.