Learn to code while playing
Swift Playgrounds makes learning to code fun and engaging. Learn to code in Swift by playing games, solving puzzles, and guiding a character through a 3D world. Swift Playgrounds requires no coding knowledge, so it’s perfect for beginners.
Challenge yourself
As your knowledge of Swift grows, you can take on challenges and try running sample code to see what it does. Build on what you’ve learned to step up to more advanced playgrounds designed by Apple and other leading developers.
Create a playground with Swift
As you expand your coding skills, you can create a fun playground of your own using the built-in templates and a library of code elements and images. Write and run your code in a predesigned template or in a playground you create from scratch.
To browse the Swift Playgrounds User Guide, click Table of Contents near the top of this page.