Swift Playgrounds

Learn serious code on your iPad. In a seriously fun way.

Download the new Swift Playgrounds free

Swift Playgrounds is a revolutionary app for iPad that makes learning Swift interactive and fun. It requires no coding knowledge, so it’s perfect for students just starting out. Solve puzzles to master the basics using Swift — a powerful programming language created by Apple and used by the pros to build today’s most popular apps. Then take on a series of challenges and step up to more advanced playgrounds designed by Apple and other leading developers.

Robots and drones await your commands.
Now you can make robots do incredible things with code you write yourself. Learn to program connected devices like LEGO® MINDSTORMS® EV3 and watch them come alive right before your eyes.

Find out more about connected devices

Real Swift code.
Real simple. Real playful.

Learning to code with Swift Playgrounds is incredibly engaging. The app comes with a complete set of Apple-designed lessons. Play your way through the basics in “Fundamentals of Swift” using real code to guide a character through a 3D world. Then move on to more advanced concepts.

What you see is what you code: create code on the left side of your screen and instantly see the results on the right — with just a tap.

Conquer levels, puzzles and coding concepts.

Starting with the “Fundamentals of Swift” lesson, you’ll tackle goals using the same code professional developers use every day. As you move along, more advanced concepts come into play. You’ll continually build on what you’ve learnt and create even more complex code.

Fundamentals of Swift.

You’ll start out by learning the important concepts you need to understand code.

  • Commands

  • Functions

  • Loops

  • Parameters

  • Conditional Code

  • Variables

  • Operators

  • Types

  • Initialisation

  • Bug Fixing

Master the basics,
then step up to more challenges.

In addition to the built-in library of lessons, Swift Playgrounds includes a collection of extra challenges — with new ones added over time. You’re not just building fun creations, you’re building your skills too.

A big world of playgrounds from
a big community of developers.

Discover dozens of channels with fun new challenges created by leading developers and publishers. Subscribe to your favourites and you’ll receive their latest creations directly in the app. Now there are no bounds to your playgrounds.

See your code crawl, roll or fly through the sky.

Watch your code spring to life by programming real robots and drones. Third-party developers of popular robots and devices offer subscriptions filled with engaging playgrounds that let you configure and control popular educational toys like LEGO® MINDSTORMS® EV3. And that’s just the beginning.

Sphero playgrounds let you guide this spherical robot through tricky courses, accelerate over jumps and change colours.

Dash playgrounds challenge you to make the robot speak, sing and respond to sensor inputs to react to its environment.

MeeBot playgrounds guide you through programming Jimu Robot MeeBot’s six robotic servo motors to make him move in lifelike ways. Or even dance.

Parrot playgrounds let you take your Parrot drones and iPad out to wide open spaces and program intense aerobatic manoeuvres.

A new way to create code.
On the best device for learning.

Swift Playgrounds takes full advantage of the power, Multi-Touch capabilities and simplicity of iPad. Just tap, drag or type text and numbers, and then interact with what you’ve created.

Edit in place.

Easily edit numbers with a keypad that pops up when you tap a number.

Snippets Library.

Quickly drag commonly used pieces of code from the Snippets Library to minimise typing.

Touch to edit.

Conveniently drag the boundaries of a statement around existing code.

QuickType and coding keyboard.

With QuickType for code, the Shortcut Bar intelligently displays commands as you go, so you can write a line of code with a tap or two. And for those moments when typing is the best option, there’s an innovative keyboard designed just for coding. Touch a key to access multiple characters, then drag to choose the one you want.

Help is just a tap away.

If you come across a command that’s hard to understand, simply touch and hold it. A menu of options will appear. Choose the most relevant one and get the answer you need.

Jump-start your creativity with templates.

Templates give you a head start on more advanced creations — providing code that helps you take advantage of iPad technologies like Multi-Touch interactions, the accelerometer and the gyroscope. Get inventive and make them your own by adding graphics, audio and more.

Explore your creations in full screen.

As you work out your code, there’s no better place to put your results to the test than the vivid Retina display of iPad. Tap and hold in the middle of the screen to toggle between showing your code or the live view area on the full iPad screen. Then use more gestures to try out other rich experiences you can create.

Share your creation with
a friend. Or the world.

Send your code to a friend’s iPad using Mail, Messages or AirDrop. Your friends can view it in Swift Playgrounds and even build on it by adding their own twists. You can also post a video of your running program to the web for the world to see.

Take things to Xcode.
Then take them further.

Because you’re working with real code, you can import and export directly between Swift Playgrounds and Xcode. So you can try out your ideas with the tool pros use to develop iOS and Mac apps.

Code is universal.
So we teach it in many languages.

Swift Playgrounds is now available in many languages, including Dutch, English, French, German, Italian, Japanese, Korean, Latin American Spanish, Portuguese, Simplified Chinese, Spanish, Swedish, Thai, Traditional Chinese and Turkish. Because we believe that everybody, everywhere should be able to learn to code.