Restaurant listing

Now that we have our Explore listing going to our restaurant listing, we need to get our Collection View connected to our RestaurantListViewController. To do so, perform the following steps:

  1. Right-click inside of the Restuaurants folder and select New File.
  2. Inside of the template screen, select iOS at the top and then Cocoa Touch Class, then hit Next. You should now see an options screen. Add the following under New file:
    • Class: RestaurantListViewController
    • Subclass: UIViewController
    • Also create XIB: Unchecked
    • Language: Swift

After hitting Next, you will be asked to create this file.

  1. Select Create.
  2. Let's delete both didReceiveMemoryWarning() and prepare() (which has been commented out), as we do not need them at ...

Get iOS 12 Programming for Beginners - Third 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.