To be able to display the selected city in ExploreHeaderView, you need to connect the outlet of the subtitle label to a property in ExploreHeaderView. Perform the following steps:
- In the document outline, click the label for the Explore Header View that has the text PLEASE SELECT A LOCATION:
- Click the Adjust Editor Options button and choose Assistant. An assistant editor appears on the right side of the screen. Make sure that it's showing the contents of ExploreHeaderView.swift.
- Ctrl + Drag from the label to the space between the curly braces:
- In the box that appears, set ...