Contents

PlaygroundLiveViewable

A protocol that displays an instance as a live view in a playground.

Declaration

protocol PlaygroundLiveViewable

Overview

A playground that presents a simplified user interface programming environment, for example, can make its view-like type conform to PlaygroundLiveViewable and appear in the live view. By default, UIView and UIViewController conform to this protocol in iOS and tvOS, and NSView and NSViewController conform to this protocol in macOS. You only need to implement this protocol for custom objects that don't already inherit from UIView, UIViewController, NSView, or NSViewController.

Topics

Displaying Types

See Also

Live Views