---
title: "Mirror.AncestorRepresentation.customized(_:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/mirror/ancestorrepresentation/customized(_:)"
---

# Mirror.AncestorRepresentation.customized(_:)

Uses the nearest ancestor’s implementation of customMirror to create a mirror for that ancestor.

## Declaration

```swift
case customized(() -> Mirror)
```

## Discussion

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 })) // <== }
