EnumerationSwift5.9.0
AncestorRepresentation
The representation to use for ancestor classes.
enum AncestorRepresentation
A class that conforms to the CustomReflectable
protocol can control how its mirror represents ancestor classes by initializing the mirror with an AncestorRepresentation
. This setting has no effect on mirrors reflecting value type instances.
Citizens in Swift
Members
case customized(() -> Mirror)
Uses the nearest ancestor’s implementation of
customMirror
to create a mirror for that ancestor.case generated
Generates a default mirror for all ancestor classes.
case suppressed
Suppresses the representation of all ancestor classes.