protocol
CustomReflectable
Inheritance | View Protocol Hierarchy → |
---|---|
Import |
|
Instance Variables
The custom mirror for this instance.
If this type has value semantics, the mirror should be unaffected by subsequent mutations of the instance.
Declaration
var
customMirror
:
Mirror
{
get
}
A type that explicitly supplies its own mirror.
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 toCustomReflectable
and return a customMirror
instance.