protocol CustomReflectable

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 the Mirror supplied for your type by default, you can make it conform to CustomReflectable and return a custom Mirror.

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.


func customMirror() -> Mirror