Updating RestaurantListViewController for iPad

You have already modified the Explore screen to automatically adapt to the device your app is running on. For the Restaurant List screen, you want a single column on the iPhone and three columns on the iPad. If you build and run on the iPad Simulator, the following screenshot shows what the Restaurant List screen looks like:

As you can see, there are only two columns, and there is a large white space between them. Let's fix this now. Do the following steps:

  1. Click RestaurantListViewController.swift inside the Restaurants folder in the Project navigator and add the following property before ...

Get iOS 13 Programming for Beginners - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.