Protocol

CustomReflectable

A type that explicitly supplies its own mirror.

Overview

You can create a mirror for any type using the Mirror(reflect:) 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 CustomPlaygroundQuickLookable

A type that explicitly supplies its own playground Quick Look.

enum PlaygroundQuickLook

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