Learn to code in Swift Playgrounds on iPad
If you don’t know how to code, you can start with the tutorials in the Learn to Code & Build Apps section. They’re designed to help you learn the basics of coding and prepare you to create apps of your own.
In the Swift Playgrounds app on your iPad, tap See All near the bottom right of the My Playgrounds screen to go to the More Playgrounds screen.
If you’re working in a playground book or an app playground, tap at the top left, then tap See All.
Tap a tutorial in the Learn to Code & Build Apps section to view a description.
(To see more tutorials, swipe left.)
These tutorials are especially helpful for learning to code:
Get Started with Code: Learn the basics of coding through fun, interactive lessons. Help a character navigate a beautiful 3D world by writing code in Swift, the programming language used by millions of developers around the world to create apps. Learn coding concepts like variables, loops, conditionals, and functions.
Learn to Code 1 and Learn to Code 2: Practice writing Swift code through a series of lessons, each of which focuses on a different coding concept and builds on what you’ve learned. Some of these lessons are also in Get Started With Code, and they reinforce what you learned there.
Tap to return to the More Playgrounds screen, then tap Get to download the playground to your iPad.
Tap the playground to open it.
The tutorials Get Started with Code, Learn to Code 1, and Learn to Code 2 are made up of chapters, each of which teaches a coding concept, starting with an introduction.
To see the chapters and pages when you’re in these playground books, tap near the top left to open the left sidebar. (Tapping it again closes the sidebar.)
To learn about a coding concept, tap the Introduction in the chapter about that concept. Tap at the bottom of the screen to page through the introduction. When you’re ready to try adding your own code, tap Start Coding at the end of the introduction.