Since you can now identify what kind of device your app is running on, let's modify ExploreViewController to change the way the Explore screen looks depending on the device. The app should display two columns on the iPhone and three columns on the iPad:
- Click ExploreViewController.swift in the Project navigator and add the following property before viewDidLoad():
fileprivate let minItemSpacing: CGFloat = 7
The minItemSpacing property will determine the spacing between cells.
- Modify the initialize() method inside the private extension as follows:
func initialize() { manager.fetch() setupCollectionView()}
You'll see an error because setupCollectionView() is not declared or defined yet. You'll do that ...