From your Mac, download and install Xcode from the Mac App Store following this link.

After the installation is complete, open Xcode and select Get started with a Playground:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2f3789a9-87ed-44aa-900a-c1170640d95b/Untitled.png

On the next panel, you can give your Playground a name or you can leave it MyPlayground and press Next:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/af11cd9e-45fc-4d27-8c37-b21676189656/Untitled.png

Select a location where to save the Playground and press Create:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c2c7e1f7-9aba-43ad-90a7-8318e6a6057d/Untitled.png

The Playground will open and your screen should look something like this:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4c5c09e8-d225-4efe-97b4-0ea4335916d7/Untitled.png

Now that the Playground is on the screen, press ⇧ + cmd + Y to show the Debug Area.

Finally delete the text inside Playground and type:

print("Hello world")

You should see ‘Hello world’ in the Debug Area and “Hello world\n” in the right Sidebar:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e897b3df-ea31-47c6-8b65-c86d5f2c59e0/Untitled.png

Congratulations! You’ve created your first program in Swift!