Our restaurant list will be the same basic setup we did in the last chapter. If you think you have a grasp of this, now is a good time to challenge yourself. If you think you still need more practice, keep reading and let's set up the restaurant list:
- Select the
Main.storyboard
file, making sure that you are zoomed out and can see all of your scenes (depending on your screen resolution). In the Utilities panel, ensure that you have the object library tab selected. - In the filter field, you are going to type
viewcontroller
. Drag this view controller and put it next to Explore View Controller. - Next, in the filter field, you are going to type
collectionview
. - Click on and drag
Collection View
and drop it onto the newView Controller
we just added next to the Explore View Controller. - After you drop it onto the scene, select the Pin icon and enter the following values:
- All values under
Add New Constraints
are set to0
- Make sure to uncheck
Constrain to margins
- All values under
- Click on
Add...