O'Reilly logo

Learning Swift™ Programming by Jacob Schatz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a New View

To improve your app, you can add another view that this view will transition to. Before you do anything else, though, change the label of the button to say Go. In your component search, look for and add two text fields and a label. Place the two text fields, spaced apart, below the Go button and place the label in the middle, with the text +. You can add a bunch of constraints to each item. You can see all the constraints added in Figure 12.8, as well as the layout on the right. You can add these constraints manually by Control+dragging from each item and choosing the constraint. If you resize anything after a constraint is applied, you must update the constraint. As soon as you resize, you see lines turn orange, which means ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required