Coding in Swift Playgrounds
Whether you are using a MacOS or iOS device this is great!
Playgrounds are great! You can use them on a Mac to quickly run code, and even on the iPhone or iPad! Fantatastic.
You’ll find Playgrounds in Interactive courses, and even downloads from GitHub (here is a guide if you are uncomfortable with this), and indeed there is even a link at the bottom of this post go the Playground created during this tutorial.
Difficulty: Beginner | Easy | Normal | Challenging
Prerequisites:
- Install either Xcode on a Mac, or playgrounds on iPhone or iPad
Recommended: Be able to produce a “Hello, World!” Swift application (guide HERE)
Terminology
Playgrounds: A development environment that can be used to create Swift code
Swift: An open source programming language for macOS, iOS, watchOS and tvOS
Playground basics
Creating a Playground: On an iOS device
You can download Playgrounds from HERE which installs the App onto your device.
We can then writelet str = "Hello, playground")