Protocol

CustomReflectable

A type that explicitly supplies its own mirror.

Declaration

protocol CustomReflectable

Overview

You can create a mirror for any type using the Mirror(reflecting:) initializer, but if you are not satisfied with the mirror supplied for your type by default, you can make it conform to CustomReflectable and return a custom Mirror instance.

Topics

Instance Properties

var customMirror: Mirror

The custom mirror for this instance.

Required.

See Also

Customizing Your Type's Reflection

protocol CustomLeafReflectable

A type that explicitly supplies its own mirror, but whose descendant classes are not represented in the mirror unless they also override customMirror.

protocol CustomPlaygroundDisplayConvertible

A type that supplies a custom description for playground logging.

typealias PlaygroundQuickLook

The sum of types that can be used as a Quick Look representation.

Deprecated