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:
- Right-click inside of the Restuaurants folder and select New File.
- 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.
- Select Create.
- Let's delete both didReceiveMemoryWarning() and prepare() (which has been commented out), as we do not need them at ...