enum PlaygroundQuickLook
Import | import Swift |
---|
Cases
Raw data that has already been encoded in a format the IDE understands.
Declaration
Initializers
Creates a new Quick Look for the given instance.
If the dynamic type of subject
conforms to
CustomPlaygroundQuickLookable
, the result is found by calling its
customPlaygroundQuickLook
property. Otherwise, the result is
synthesized by the language. In some cases, the synthesized result may
be .text(String(reflecting: subject))
.
Note: If the dynamic type of subject
has value semantics, subsequent
mutations of subject
will not observable in the Quick Look. In
general, though, the observability of such mutations is unspecified.
subject
: The instance to represent with the resulting Quick
Look.
Deprecated: PlaygroundQuickLook will be removed in a future Swift version..
Declaration
init(reflecting subject: Any)
The sum of types that can be used as a Quick Look representation.
The
PlaygroundQuickLook
protocol is deprecated, and will be removed from the standard library in a future Swift release. To customize the logging of your type in a playground, conform to theCustomPlaygroundDisplayConvertible
protocol, which does not use thePlaygroundQuickLook
enum.If you need to provide a customized playground representation in Swift 4.0 or Swift 3.2 or earlier, use a conditional compilation block:
Deprecated: PlaygroundQuickLook will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead..