Share a playground or app project on Mac
You can share your playground or app project so other people can try the code you’ve created. If you have an Apple Developer account and you create an app (macOS 12.4 or later), you can submit your app to App Store Connect to make it available to others.
Use AirDrop, Mail, Messages, and more
In the Swift Playgrounds app on your Mac, go to the My Playgrounds window (choose Window > My Playgrounds or click at the top left of the More Playgrounds screen), then Control-click the playground you want to share.
Choose how you want to share your playground or app:
AirDrop: Click a recipient. The recipient must accept your document before it’s sent.
Messages, Mail, or another app: Click Mail, Messages, More, or another app, enter the recipient and other requested information, then send it.
Submit an app to App Store Connect or install it on your Mac
You can install an app you created (on macOS 12.4 and later) in the Applications folder on your Mac.
Or, if you have an Apple Developer account, you can submit your app to App Store Connect.
Click near the top left to open the left sidebar, then click App Settings near top of the sidebar.
Choose an icon and color for your app, then click Custom and import or paste any images you want to add to your app.
Click Capabilities, click , then select any capabilities you want to add to your app—for example, Bluetooth, Calendars, Camera access, or Speech Recognition.
Enter an explanation for each capability you want to add.
This explanation is shown to the user to request permission to grant the capability.
To install the app in the Application folder on your Mac, click Install on this Mac.
To submit the app to App Store Connect, click Sign In (if you have a developer account).
Enter a team and bundle ID, a version number, and a category for your app (to display on the App Store for customers—for example, Education, Business, or Games), then click Upload to App Store Connect.
For information about using App Store Connect to follow up on your App Store submission, see App Store Connect.
Create a PDF of a playground
You can create a PDF of your playground that you can print or share with others. The PDF is an image-based file (it doesn’t contain text information), so you can’t copy and paste text from it.
Open the playground you want to export, then choose File > Export as PDF.
Find a location where you want to save the PDF, then click Save.
Export a playground
You can export a playground to share it with others or save a version for yourself.
In the Swift Playgrounds app on your Mac, open a playground, then choose File > Export as New Playground.
To rename the playground, select its name, then enter a new name.
To use the changes you’ve made as the new starting point for the exported playground, make sure “Start Over with My Changes” is turned on. Then, if the person who receives your playground chooses to reset it, their changes will be discarded but not yours.
If “Start Over with My Changes” is turned off when you export the playground, both your changes and theirs are discarded if they reset the playground.
To save the playground to your My Playgrounds page, click Export to My Playgrounds.
From the My Playgrounds page, you can share the playground.