Getting data into Collection View

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:

  1. 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.
  2. Update our class definition from the ExploreViewController:UIViewController class to the following:
class ExploreViewController:UIViewController, UICollectionViewDataSource