Setting up our first Xcode playground

With the release of Xcode 6, Apple introduced a new feature, called playgrounds. A playground is lightweight compared to a traditional Xcode project and is a great tool to try out things in Swift without having to worry about setting up a complete project. We can use a playground to write our first program, which will not have any GUI.

Creating the playground

Start off by opening up the Xcode application we installed in Chapter 2, Getting Set Up. Look for the following icon in your applications folder:

Creating the playground

The first thing you will see in Xcode is the Welcome to Xcode window, which will give you quick access to ...

Get Swift iOS Programming for Kids 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.