Contents

Mirror.AncestorRepresentation.generated

Generates a default mirror for all ancestor classes.

Declaration

case generated

Discussion

This case is the default when initializing a Mirror instance.

When you use this option, a subclass’s mirror generates default mirrors even for ancestor classes that conform to the CustomReflectable protocol. To avoid dropping the customization provided by ancestor classes, an override of customMirror should pass .customized({ super.customMirror }) as ancestorRepresentation when initializing its mirror.