Learn to code in Swift Playgrounds on iPad
If you don’t know how to code, you can start with the playgrounds in the Learn to Code section, which are designed to help you learn the basics of coding and prepare you to create programs of your own.
Note: There are some differences between Swift Playgrounds in iPadOS 14.0 or later and iPadOS 13.6.1 or earlier. The instructions note the differences.
In the Swift Playgrounds app on your iPad, tap See All near the bottom right of the My Playgrounds screen.
If you’re working in a playground, tap at the top left, then tap See All.
Tap a playground in the Learn to Code section to view a description.
Tap Get to download the playground to your iPad.
Tap the playground to open it and start using it.
Each Learn to Code playground begins with an introduction that teaches a coding 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.
Many playgrounds are made up of pages organized into chapters. To see the chapters and pages in a playground in iPadOS 14.0 or later, tap to open the sidebar. In iPadOS 13.6.1 or earlier, tap the title at the top of the page.
To learn about a coding concept, tap the Introduction page in the chapter about that concept.