<!--
{
  "documentType" : "article",
  "framework" : "Swift Playgrounds",
  "identifier" : "/documentation/swift-playgrounds",
  "metadataVersion" : "0.1.0",
  "role" : "collection",
  "title" : "Swift Playgrounds"
}
-->

# Swift Playgrounds

Learn to write apps, repurpose sample code, create, and share learning experiences in Swift Playgrounds.

## Overview

[Swift Playgrounds](https://www.apple.com/swift/playgrounds/) provides a unique environment for developers to explore, tinker, and learn how to code and build apps.
For those new to coding, Swift Playgrounds offers a way for you to explore what’s possible with the Swift programming language, SwiftUI, and the APIs (frameworks) you’ll use to build apps for Apple platforms — iOS, iPadOS, and macOS.
For experienced coders, app playgrounds enable you to write SwiftUI apps and submit them to the App Store — directly from Swift Playgrounds on your iPad or Mac.
As an educator, you can leverage Swift Playgrounds to create step-by-step guided playground books that encourage learners to examine, understand, and interact with code.

![The completed Keep Going with Apps app playground in Swift Playgrounds. There are three vertical views in the app. The left column is the Project Navigator, which lists the Code files where the ContentView file is selected. The code from the ContentView file is shown in the center view. The right view shows the My Creatures App content view Preview, with a Make the Creatures Dance navigation link and gorilla, peacock, and Squid creature list items.](images/com.apple.Swift-Playgrounds/keep-going-with-apps@2x.png)

The following articles will help you build and refine your app playgrounds as you’re ready to take the next step.
They contain tips and techniques to help you make the most of your app or book in Swift Playgrounds.
Learn how to add functionality to your app from the content provided in Swift Playgrounds or from another developer entirely by adding a Swift Package.
Find out how to take advantage of the preview system, app capabilities, and debugging with the console.
As you complete app playgrounds or playground books, share them with a subscription and inspire a whole new generation of Swift coders.

## Topics

### App playgrounds

[Adding a Swift package to your app playground](/documentation/Swift-Playgrounds/add-a-swift-package)

Extend the functionality of your app playground by finding and adding a publicly available Swift package.

[Debugging an App Playground using the Console](/documentation/Swift-Playgrounds/console-print-debugging)

Learn different methods to debug your code using console output.

[Previewing SwiftUI views in Swift Playgrounds](/documentation/Swift-Playgrounds/live-preview)

Use the canvas in Swift Playgrounds to see a live preview of the SwiftUI views in your app.

[Requesting access to capabilities for your app playground](/documentation/Swift-Playgrounds/project-capabilities)

Request access for your app to protected resources, services, or device hardware such as sensors.

[Importing sample content into user app playgrounds](/documentation/Swift-Playgrounds/using-content-in-user-projects)

Learn how to bring sample code into your app playground.

### Sample apps

  <doc://com.apple.documentation/tutorials/Sample-Apps>

### Playground books

[Playground Books](/documentation/Swift-Playgrounds/playground-books)

Create interactive Playground Book based learning experiences for the Swift Playgrounds app.

### Subscriptions

[Creating a subscription](/documentation/Swift-Playgrounds/creating-a-subscription)

Create a machine-readable summary of a set of playground books to make them available
for others to download.

[Localizing a Subscription Feed](/documentation/Swift-Playgrounds/localizing-a-subscription-feed)

Provide multiple localizations of a subscription’s content in a single feed.

[Publishing a Subscription](/documentation/Swift-Playgrounds/publishing-a-subscription)

Make the playground books in a series available online for download and subscription.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)