New Project (designers) - codepath/ios_guides GitHub Wiki

Creating a new project

Step 1: Generate Xcode Project

In Xcode, select File->New->Project, choose iOS, and then choose the App template. (In Xcode 11 and earlier this template was called Single View Application / Single View App; Apple consolidated several iOS app templates into one App template in Xcode 12.) The other templates (Game, Augmented Reality, etc.) are for specialized projects, so for general work you'll choose App.

New Project|600

Step 2: Disable Auto Layout

Layout in iOS is very simple, it's based on absolute positioning and nesting views. Unlike HTML, there is no flow (automatic wrapping of views) and no box model (margin and padding). Auto Layout is a set of rules that allows the views to be elastic to small dimension changes and responsive to orientation changes and to phones / tablets.

Until we learn how to use Auto Layout, it can complicate things unnecessarily, so disable it for new projects by selecting the Storyboard and unchecking Auto Layout, as shown below.

Disable Auto Layout|600