To display the Restaurant List screen when a cell in the Explore screen is tapped, go through the following steps.
- Click Explore View Controller Scene in the document outline. Hold down Ctrl and drag from the exploreCell in the document outline to the Restaurant List View Controller scene:
- The Segue menu will appear. Choose Show from the menu. This makes the Restaurant List screen slide in from the right when the exploreCell is tapped and will display a <Back button in the navigation bar:
- Build and run the app. In the Explore screen, tap a cell. You should see the Restaurant List screen appear with a collection view containing a single cell inside it. Tapping the <Back button in the navigation bar will dismiss the Restaurant List screen:
- Eventually, this collection view will display a list of restaurants at a particular location, as shown in the app tour in Chapter 9, Setting Up the Basic Structure.
Great! The next thing you need to do is add a view controller scene to represent the Restaurant Detail screen. This screen will be displayed when a cell in the Restaurant List screen is tapped. You'll do this in the next section.