Getting data into Collection View

Having boxes is great, but having data with nice pictures is so much more appealing.  Let’s get some data displaying inside of our Collection View:  

  1. Use cmd + Shift + O, which opens a small window called Open Quickly. Inside of the window, type ExploreView and hit Enter to select the ExploreViewController.swift file.

 

  1. Update our class definition from the ExploreViewController:UIViewController class to the following:
class ExploreViewController:UIViewController, UICollectionViewDataSource