Reset a playground in Swift Playgrounds on iPad
In some playgrounds in Swift Playgrounds, you can reset changes you’ve made in the playground, all the way back to the starting point. This is especially useful if you want to retry a challenge you already completed or let a friend try it. You can reset the current page or all the pages in a playground.
In a playground created from the blank playground template, you can’t reset changes. To start over, tap the Playground button at the bottom left of the My Playgrounds screen to create another blank playground, then rename it.
Reset a page in a playground
Note: Resetting a page removes the code changes you’ve made on the page and returns the page to its original state. In a playground that supports user modules, resetting a page resets the code in the Main Swift file on the current page (in the tab with at the top) but doesn’t reset the shared Swift files in the playground.
In the Swift Playgrounds app on your iPad, go to the page you want to reset.
Tap , then choose Start Page Over.
Reset a playground
Note: Resetting a playground removes the code, images, and resources you’ve added and returns the playground to its original state. In a playground that supports user modules, resetting a playground removes modules and files you’ve added to the playground and removes the code changes you’ve made to any of the Swift files that came with the playground.
In the Swift Playgrounds app on your iPad, go to the My Playgrounds screen.
If you’re working in a playground, tap near the top left.
If you’re on the More Playgrounds screen, tap at the top left.
Tap Select at the top right.
Select the playground you want to reset, tap near the top left, then tap Reset.
Note: If the is dimmed, you might be in a playground created from the blank playground template on the My Playgrounds screen, which can’t be reset.