After setting up Xcode, it is not difficult to get your first iOS up and running.

In the following example we will:

Starting a new project

When the Xcode welcome screen comes up, choose Create a new Xcode project. Alternatively, you could do File > New > Project… from the Xcode menu if you already have it open.

http://i.stack.imgur.com/fD6Fm.png

Choose a Single View Application and click Next.

http://i.stack.imgur.com/Rcpwh.png

Write “HelloWorld” for the Product Name (or whatever you want really) and under Language, make sure Swift is selected.

http://i.stack.imgur.com/Sg1tA.png

Choose an existing folder or create a new one where you will save your Xcode projects. This will be the default in the future. We created one here called “Xcode Projects”. Then click Create. You can select Source Control if you like (used when syncing to sites like GitHub), but we won’t be needing it in this example.

http://i.stack.imgur.com/e3ZJ5.png

Adding a label

This is the file structure of an Xcode project.