Adding items to the storyboard

Almost every app needs to present textual information. To do so, we need a label or a TextView to render the content in the app. Follow these steps to add a simple label on the screen:

  1. Open the Utilities pane (alt + cmd + 0).
  2. Activate the Object Library tab. Simply click on the Object Library button shown here: 
  1. Click on the filter field at the bottom:
  1. Type lab. The list of components will filter.
  2. You should see just a single component. In this case, the Label view:
  1. Start dragging the label to the storyboard ...

Get Learn Swift by Building Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.