Swift Playgrounds 4+

Learn real coding the fun way


    • 3.6 • 88 Ratings
    • Free



Swift Playgrounds makes it fun to learn to code and build real apps. You solve interactive puzzles in the guided “Get Started with Code” and learn the basics of building apps in “Get Started with Apps.” You experiment with a wide range of challenges and samples that let you explore unique coding experiences.

Swift Playgrounds doesn’t require any coding experience — it’s perfect for anyone just starting out, from eight to one-hundred-and-eight. The whole time you are learning Swift and SwiftUI, the powerful programming technologies 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 frameworks, 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
• Glossary and built-in help pages give detailed information about available commands, frameworks, and terminology

Explore and Create
• Interactive coding shows the results of your code instantly, alongside your work
• Step through code in playground books to highlight each line as it runs
• Books provide a head start to create your own playgrounds that use graphics and sound
• App Gallery walks you through the building blocks of apps, like tabbed navigation and downloading data

Build Apps
• Create real apps using SwiftUI
• See your code changes reflected live while you type
• Type quickly and accurately with inline code suggestions
• Extend your app with an ecosystem of Swift packages
• Navigate your code with project-wide search

Smart Coding Assistance
• 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
• Fix common code errors with helpful inline suggestions
• Stay organized with automatic code formatting

Real Swift and SwiftUI Code
• Learn the same powerful Swift programming language used by the pros to create apps in the App Store
Build dynamic, elegant apps using SwiftUI, a modern way to create user interfaces
Access powerful frameworks such as SpriteKit for 2D games
• Use Bluetooth APIs to write programs that communicate with real-world devices

Share or Publish
Send your projects to friends and family using Messages, Mail, AirDrop, or other Share Sheet extensions
• Bring your app projects to Xcode on Mac and back again
• Submit your completed apps to the App Store with App Store Connect

What’s New

Version 4.5

Swift Playgrounds 4.5 includes Swift 5.10 and the macOS 14.4 SDK, along with other features and bug fixes.

• Open Quickly helps you jump to any file or code symbol in your project
• Quick Actions gives you fast access to menu commands
• Jump to Line lets you navigate based on line numbers in your code

Ratings and Reviews

3.6 out of 5
88 Ratings

88 Ratings

JDH79 ,

A Great Tool to Learn With... But.

I am new to the coding scene so decided to start with the basics. This app is very easy to use and helps you understand how coding works in an informative, fun way. My only frustration is echoed in other reviews on here, the overheating issue. I have a Macbook Pro 13" 2019 with 8gb Ram and a 256 ssd. It runs flawlessly other than when i decide to work with Swift Playgrounds. After about 10 minutes the fans start to kick in and my CPU temp is around 72-75 degrees Celcius. Keep working and the fans continue to increase in speed and sound as they try to keep the CPU around this temp. Battery is also impacted with a 10-15% drain in 15 minutes? As soon as i close the program everything returns to normal with the CPU at a modest 30-33 degrees Celcius. interestly i run the same program but on my Ipad air 3rd gen with no issues what so ever. Why does this program demand such resources on a mac? I would like to score this app higher than three stars but to not be able to use the app for more than 20 minutes at a time is crazy. I hope as others have said this is a software issue and will be fixed with a future update.

silvia_18 ,

Really enjoyinh learning but it runs like trash on MacBook Air

I'm really enyoing learning the basics of coding on this but the app does not run well on MacOS. Every now and again it crashes when I try to delete something, the animations are incredible laggy, the Air heats up. It runs perfectly well on iPad so get it on there if you can. Why release something that doesn't run well?

CarlYounger ,

Runs flawlessly on Apple Silicon

People are complaining about performance on macOS (but have no issues on iOS). I tried this on an entry level MacBook M1, and the CPU usage hardly increases (maybe one or two percent) when running the demo games.

Swift Playground is a generall purpose scratchpad for learning Swift, so it's not just a toy. It just includes tutorials that work really well for kids - way nicer than Skratch etc, and Swift is an awesome language (especially if you already use Macs).

App Privacy

The developer, Apple, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy.

Data Not Linked to You

The following data may be collected but it is not linked to your identity:

  • Identifiers
  • Usage Data
  • Diagnostics

Privacy practices may vary based on, for example, the features you use or your age. Learn More

More By This Developer

Apple Books
Apple Podcasts
Find My Friends
Social Networking
Shazam: Find Music & Concerts
Photo & Video