Mirror.AncestorRepresentation.customized(_:)
Uses the nearest ancestor’s implementation of customMirror to create a mirror for that ancestor.
Declaration
case customized(() -> Mirror)Discussion
Other classes derived from such an ancestor are given a default mirror. The payload for this option should always be { super.customMirror }:
var customMirror: Mirror {
return Mirror(
self,
children: ["someProperty": self.someProperty],
ancestorRepresentation: .customized({ super.customMirror })) // <==
}