Having boxes is great, but having data with beautiful pictures is so much more appealing. Let’s get some data displaying inside of our Collection View:
- Use command + shift + O, which opens a small window called Open Quickly. Inside the window, type ExploreView and hit enter to select the ExploreViewController.swift file.
- Update our class definition from the ExploreViewController:UIViewController class to the following:
class ExploreViewController:UIViewController, UICollectionViewDataSource