Enumeration

Mirror.AncestorRepresentation

The representation to use for ancestor classes.

Declaration

enum Mirror.AncestorRepresentation

Overview

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.

Topics

Enumeration Cases

case customized(@escaping () -> 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.