As we discussed earlier in the book, Collection View Controllers allow us to display elements within a grid. Let's set up our Collection View:
- Select the Main.storyboard file, making sure that you are zoomed out and can see all of your scenes. In the Utilities Panel (command + Shift + L), ensure that you have the object library tab selected.
- In the filter field, type collec:
![](https://static.packt-cdn.com/products/9781789348668/graphics/assets/177735d2-3551-418d-b460-9cd524bd3d2f.png)
- Click on and drag Collection View, and drop it onto the Explore View Controller:
![](https://static.packt-cdn.com/products/9781789348668/graphics/assets/fdc175ce-49d7-4caa-a3e3-af686b6332a2.png)
- You will see small boxes around the entire Collection View component. Select the Pin icon, and enter the following values:
![](https://static.packt-cdn.com/products/9781789348668/graphics/assets/65855781-998e-411e-8a72-05d959068b41.png)
All values under Add New Constraints are set to 0.
- Click on Add 4 Constraints.
We now have our Collection View component set up for our Explore tab.