Updating the Interface
Open Main.storyboard and locate the Mood Selection View Controller Scene. Select and delete the stack view in its interface.
Drag a plain old View from the object library (it will be easier to find if you search for the class name UIView) and place it within the visual effect view’s content view, where the stack view had been placed. You will want this new view to have the same constraints that the stack view had.
To do this, first resize the new view to be smaller than its superview; it should be positioned completely inside of its superview. Then open the Add New Constraints menu and configure it as shown in Figure 18.3. Confirm that Constrain to margins is checked, and then click Add 5 Constraints.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access