Connecting the section header's label to ExploreViewController

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:

  1. In the document outline, click the label for the Explore Header View that has the text PLEASE SELECT A LOCATION:

  1. 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.
  2. Ctrl + Drag from the label to the space between the curly braces:
  1.  In the box that appears, set ...

Get iOS 13 Programming for Beginners - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.