Understanding Swift Playgrounds
Playgrounds is an interactive coding environment. You type code in the left-hand pane, and the results are displayed immediately in the right-hand pane. It's a great way to experiment with code and to explore system APIs. Let's get started!
Important Information
API is an acronym for Application Programming Interface. To learn more, visit https://en.wikipedia.org/wiki/API.
- To create a playground, launch Xcode and choose File | New | Playground... from the Xcode menu bar:
- The template screen appears. iOS should already be selected. Choose Blank and click Next:
- Name your playground
SimpleValues
and save it anywhere you like. Click Create when done:
You should see the playground on the screen: