Connecting storyboard elements to outlets in a view controller
You've added a collection view to the Explore screen, but it won't be able to display anything yet. You'll implement a view controller to manage the view on the Explore screen. To do so, you'll add a Cocoa Touch class file to your project, declare and define a UIViewController
subclass in that file, and connect UI elements on the Explore screen to the code in your UIViewController
subclass.
Important information
The Model-View-Controller design pattern and collection view controllers will be explained in more detail in Chapter 13, Getting Started with MVC and Collection Views.
Let's start by adding a Cocoa Touch class file to your project so you can declare and define a UIViewController
subclass in the next section.
Adding a Cocoa Touch Class file to your project
Cocoa Touch is the application development environment for building apps for iOS, iPadOS, watchOS, and tvOS. A Cocoa Touch...