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 iPad, go to the My Playgrounds screen, tap Select, then tap the playground you want to share.
Tap .
Choose how you want to share your playground:
AirDrop: Tap a recipient. The recipient must accept your document before it’s sent.
Messages, Mail, or another app: Tap the icon for the app you want to send with, enter the recipient and other requested information, then send it.
Copy: Tap Copy to create a copy of your playground that you can paste.
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.
In the Swift Playgrounds app on your iPad, open the playground, tap , then tap Create PDF.
Choose a way to share your PDF:
AirDrop: Tap a recipient. The recipient must accept your document before it’s sent.
Messages, Mail, or another app: Tap the app icon, enter the recipient and any other requested information, then send it.
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 iPad, open a playground, tap , then choose Advanced > Export 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, tap Export to My Playgrounds; to share it, tap Share Exported Playground, then choose how you want to share your playground (Mail, Messages, AirDrop, and so on).