Guides and Sample Code

Developer

Playground Book Format Reference

PlaygroundLiveViewRepresentation Enumeration

An enumeration that describes the supported representations for live views in playgrounds.

Enumeration Cases

view

A view that is displayed as the live view.

Declaration

  1. case view(UIView)

Discussion

The associated value is a UIView that is the root of a view hierarchy (it does not have a superview), and it is not owned by a view controller.

viewController

A view controller whose view is displayed as the live view.

Declaration

  1. case viewController(UIViewController)

Discussion

The associated value is a UIViewController that is the root of a view controller hierarchy (it does not have a parent view controller), and its view does not have a superview.