Share a playground on iPad
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 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 app icon, enter the recipient and other requested information, then send it.
Copy: Tap Copy to create a copy of your playground that you can paste.
Record a playground
If you want to explain your code with a video, you can record your playground and add comments as you record. Videos you create are saved to your iPad and can be shared like any other video.
In a playground in the Swift Playgrounds app on your iPad, tap , then tap Record Movie.
Tap to start recording.
To stop recording, tap .
After you stop recording, do any of the following:
Tap Save to save the video to Photos.
Tap the Play button in the middle of the screen to watch the video you just recorded.
To share or copy your video, tap , then choose how to share:
AirDrop: Tap a recipient. The recipient must accept your document before it’s sent.
Mail, Messages, or another app: Tap the app icon, enter the recipient and other requested information, then tap .
Copy: Tap Copy to create a copy of your video that you can paste.
Tap Done to return to your playground.
Broadcast a playground live
You can broadcast a playground to an audience from your iPad if you have a third-party app that allows you to livestream mobile games. If you don’t have an app that streams content, you can find one on the App Store.
In the Swift Playgrounds app on your iPad, open the playground, tap , then tap Broadcast Live.
If you have an app for livestreaming mobile games, tap the streaming app.
If you don’t have an app for livestreaming mobile games, tap Find Live Streaming Apps, then choose a third-party app to stream to.
Tap to begin streaming Swift Playgrounds.
When you want to stop streaming, tap .
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).