I have downloaded “A Swift Tour” playground for Xcode:
https://web.archive.org/web/20230204091803/https://docs.swift.org/swift-book/GuidedTour/GuidedTour.playground.zip
There, you can execute code snippets right in the text:
And you can edit them first. For example, you can change the value of myVariable
to 40
. But how to reset all these examples to their default state?
New contributor
jsx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.