<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s6MirrorV22AncestorRepresentationO"
  },
  "title" : "Mirror.AncestorRepresentation"
}
-->

# Mirror.AncestorRepresentation

The representation to use for ancestor classes.

```
enum 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.

---

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)