CustomPlaygroundQuickLookable

protocol CustomPlaygroundQuickLookable

A type that explicitly supplies its own playground Quick Look.

A Quick Look can be created for an instance of any type by using the PlaygroundQuickLook(reflecting:) initializer. If you are not satisfied with the representation supplied for your type by default, you can make it conform to the CustomPlaygroundQuickLookable protocol and provide a custom PlaygroundQuickLook instance.

Inheritance View Protocol Hierarchy →
Import import Swift

Instance Variables

var customPlaygroundQuickLook: PlaygroundQuickLook Required

A custom playground Quick Look for this instance.

If this type has value semantics, the PlaygroundQuickLook instance should be unaffected by subsequent mutations.

Declaration

var customPlaygroundQuickLook: PlaygroundQuickLook { get }