Single-View Applications

When you start with a single-view application, Xcode starts you off with just a simple UIView, the most basic view available. A lot of other views inherit from this view. To choose this kind of application, click Single View Application and then click Next. Name your project single view, make sure Language is set to Swift, and make sure the Device is Universal. When you open the Main.storyboard file, you see the view shown in Figure 12.2.

Image

Figure 12.2 The main.storyboard GUI layout.

In Figure 12.2, note the couple of labels added to the storyboard:

1. In this sidebar area, you can make changes to things that are currently ...

Get Learning Swift™ Programming 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.