Share a playground on iPad
You can share your playground so other people can try the code you’ve created.
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.
Click Share.
Choose how you want to share your playground:
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.
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.