Swift Playgrounds Overview

Swift Playgrounds makes it fun to learn and experiment with code. You solve interactive puzzles in the guided “Learn to Code” lessons to master the basics of coding, or experiment with a wide range of challenges that let you explore unique coding experiences.

Swift Playgrounds doesn’t require any coding experience — it’s perfect for learners just starting out, from eight to one-hundred-and-eight. The whole time you are learning Swift, the powerful programming language created by Apple and used by professionals around the globe to build many of today’s most popular apps. And because it’s built to take advantage of real programming technologies, Swift Playgrounds provides a one of a kind learning experience.

Lessons Built-in
  • Apple-created lessons guide you through the core concepts of programming by using code to solve puzzles
  • See your code run in a beautiful, interactive 3D world that you can rotate and pinch to zoom using the trackpad
  • Animations introduce each new coding concept at a high-level before you dive into the puzzles
  • Choose from three animated characters to carry out the steps of your code
  • Glossary and built-in help pages give detailed information about available commands, frameworks, and terminology
Explore and Create
  • Challenges offer many new opportunities for creativity by playing with game logic, music, and more
  • Interactive coding shows the results of your code instantly, alongside your work
  • Step through your code to highlight each line as it runs
  • Use your own photos and images within a program to make it uniquely yours
  • Starting points provide a head start to create your own playgrounds that use graphics and sound
  • Create your own playgrounds from scratch to build something totally unique
  • Reset any page to start over, or duplicate and rename any playground to try different ideas
Built for Mac
  • Code suggestions let you write entire programs in just a few clicks of the mouse
  • Click and drag a brace to wrap a block of code inside a loop or conditional statement
  • Drag and drop snippets of commonly-used code directly into your playground
Real Swift Code
  • Learn the same powerful Swift programming language used by the pros to create thousands of apps
  • Access powerful frameworks such as SpriteKit for 2D games, SwiftUI for app interfaces, and more
  • Use Bluetooth APIs to write programs that communicate with real-world devices
  • Concepts and skills you learn directly apply when writing real apps
  • Send your projects to friends and family using Messages, Mail, AirDrop, or other Share Sheet extensions
  • Start a playground on your Mac, then open on your iPad using iCloud to continue the project