Share a playground on Mac
You can share your playground so other people can try your code or the projects you’ve created.
Use AirDrop, Mail, Messages, and more
In the Swift Playgrounds app on your Mac, go to the My Playgrounds screen, then do one of the following:
Click the playground you want to share, then choose File > Share.
Control-click the playground you want to share, then choose Share.
Double-click the playground to open it, then click at the top right.
Choose how you want to share your playground:
AirDrop: Click a recipient. The recipient must accept your document before it’s sent.
Mail, Messages, or another app: Click the app you want to use to share your playground, enter a recipient and other requested information, then send it.
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 will be 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 using AirDrop, Mail, Messages, or another app.