A live view that shows the result of running the code that’s on the current page.
- macOS 10.12+
- Xcode 8.0+
- Swift Playgrounds 2.0+
- Playground Support
Display a live view by setting
live to an object that conforms to the
Playground protocol. Dismiss any open live view by setting
The live view is displayed in the assistant editor for the current playground page. There can be only one live view open at any time.