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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.