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.

Learn to code in Swift

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.

Explore challenges

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.

Create a playground

To browse the Swift Playgrounds User Guide, tap Table of Contents near the top of this page.

Helpful?
Character limit: 250
Maximum character limit is 250.
Thanks for your feedback.