Adding a Cocoa Touch Class file to your project

First, you will make a new Explore group in your project to keep things organized. Next, you will add a Cocoa Touch Class file, ExploreViewController.swift, to this group. This is where you will declare and define the ExploreViewController class, which will contain the properties and methods that control the collection view that you added to the View Controller Scene earlier. Follow these steps to do so:

  1. Right-click on the LetsEat group in the Project navigator and choose New Group.
  2. The name of the group will be highlighted. Change it to Explore and press Return on the keyboard when you're done:

If you make a mistake, press Return once more. This makes the field editable so that you can make ...

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