enum PlaygroundQuickLook
Import | import Swift |
---|
Cases
A rectangle.
Uses explicit coordinates to avoid coupling a particular Cocoa type.
Declaration
A point.
Uses explicit coordinates to avoid coupling a particular Cocoa type.
Declaration
A size.
Uses explicit coordinates to avoid coupling a particular Cocoa type.
Declaration
A range.
Uses explicit values to avoid coupling a particular Cocoa type.
Declaration
A graphical sprite.
Uses an Any to avoid coupling a particular Cocoa type.
Declaration
Initializers
Initialize for the given subject
.
If the dynamic type of subject
conforms to
CustomPlaygroundQuickLookable
, returns the result of calling
its customPlaygroundQuickLook
method. Otherwise, returns
a PlaygroundQuickLook
synthesized for subject
by the
language. Note that in some cases the 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
Mirror
. In general, though, the observability of such
mutations is unspecified.
Declaration
init(reflecting subject: Any)
The sum of types that can be used as a quick look representation.