protocol CustomReflectable
Inheritance | View Protocol Hierarchy → |
---|---|
Import | import Swift |
Instance Methods
func customMirror()
Required
Returns the Mirror
for self
.
Note: If Self
has value semantics, the Mirror
should be
unaffected by subsequent mutations of self
.
Declaration
func customMirror() -> Mirror
A type that explicitly supplies its own Mirror.
Instances of any type can be
Mirror(reflect:)
'ed upon, but if you are not satisfied with theMirror
supplied for your type by default, you can make it conform toCustomReflectable
and return a customMirror
.