Connecting outlets in storyboard to the view controller

Let's review where you are now. In Main.storyboard, you have a View ControllerScene that has a view containing a collection view. In ExploreViewController.swift, you have code that declares and defines the ExploreViewController class. You need to assign the ExploreViewController class as the view controller for the view containing the collection view. To do this, you will use the Identity inspector.

After that, you need to be able to manage the collection view from ExploreViewController. You'll create a connection between the collection view to an outlet in ExploreViewController.

To assign the identity of the view controller scene in the Explore screen to the ExploreViewController class, ...

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.