A protocol for types that can be displayed as the live view for a playground.
- macOS 10.9+
- Xcode 8.0+
- Playground Support
This protocol enables you to display any type of object in a live view. For example, a playground that presents a simplified user interface programming environment can make its view-like type conform to
Playground and appear in the live view.
UIView conform to this protocol on iOS and tvOS, and
NSView conform to this protocol in macOS. Developers need to implement this protocol only for custom objects that do not inherit from