Adding a label UI element

Let's add a new UI element, that is, a label, to show notifications to users. For that, follow these steps:

  1. Open Main.storyboard and open the library button located in the top-right corner of the screen (the first button of its set, with a square inside a circle):

Library button
  1. Find and drag a Label onto the view:

Selecting the Label from the library
  1. With the label selected, use Ctrl + mouse drag to create constraints for the label regarding the view, or in the toolbar below the phone view, click on the Add New ...

Get Enterprise Augmented Reality Projects 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.