Containing labels in a stack view

Open your Main.storyboard file and select a device that has a compact width, such as an iPhone Xs, for instance. Select the six labels in the contact info view and embed them in a stack view by using the Embed In menu as shown in the following screenshot.

Now find the stack view in the Document Outline and drag it up so that it ends up above the view that currently contains it. Once you have done this, the stack view is no longer a child view of that view so you can remove it. Move the stack view to roughly to the position that the old view was in.

The next step is to select the notes label and the text field ...

Get Mastering iOS 12 Programming - Third Edition 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.