Creating an Xcode Playground

Xcode is a large application that serves many purposes for software developers.

Among many other tasks that they perform on a regular basis, software developers write code.

However, we – as you are now a software developer – do not always want to write code as part of a large project.

That is where an Xcode playground is useful – it is a place to try out ideas with code outside of the context of a large project.

Make a new playground

To create a playground, make sure that Xcode is in the foreground on your computer by clicking it's icon in the Dock:

Pasted image 20231021072302.png|100

From the menu bar at top left, choose File > New > Playground...:

Pasted image 20231021072525.png|400

You will see the following window – here, choose the macOS tab, then Blank, and then Next:

Pasted image 20231021072716.png|600

On the next screen, you are choosing where to save your playground.

You may see a window that looks like the one below – if you do, press the button with the downward facing arrow to open the larger file navigation interface:

Screenshot 2023-10-21 at 7.30.53 AM.png|600

Now you have the ability to see your Finder shortcuts (at left) and more easily navigate around the file system on your computer:

Screenshot 2023-10-21 at 7.32.02 AM.png|600

Keep things organized.

Navigate to the folder where you want to save your Xcode playground.

For example, you might navigate to your Desktop, then use the New Folder button to create a folder for the course you are in:

Screenshot 2023-10-21 at 7.33.59 AM.png|600

Finally, save your playground using a descriptive name.

What name you select will depend on what concept or idea you are exploring:

Screenshot 2023-10-21 at 7.37.10 AM.png