Playground Visual Edit Code – WWDC20 Scholarship

The Playground has two more interesting features.

One of them is an option to hide code but it’ll be executed. It only won’t be visible in the Playground, for example, info about imports.

//#-hidden-code
import PlaygroundSupport
//#-end-hidden-code

The second one allows editing variables, for example, color, some text or integer value of something.

//#-editable-code
view.backgroundColor = .red
//#-end-editable-code