<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Mirror/AncestorRepresentation/customized(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s6MirrorV22AncestorRepresentationO10customizedyAdByccADmF"
  },
  "title" : "Mirror.AncestorRepresentation.customized(_:)"
}
-->

# Mirror.AncestorRepresentation.customized(_:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)