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. The first thing we should do is create a folder inside of the Restaurant folder:

  1. Right-click on the Restaurant folder and create a group called Restaurant List.
  2. Then, right-click on the Restaurant List folder and create two new groups—Controller and View.
  3. Right-click on the Controller and select New File.
  4. Inside of the template screen, select iOS at the top and then Cocoa Touch Class. Then, hit Next.
  5. You will now see an options screen. Add the following:

    New File:

    • Class: RestaurantListViewController
    • Subclass…: UIViewController
    • Also create XIB: Unchecked
    • Language: Swift
  6. After hitting Next ...

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