---
title: Mirror.AncestorRepresentation
framework: swift
role: symbol
role_heading: Enumeration
path: swift/mirror/ancestorrepresentation
---

# Mirror.AncestorRepresentation

The representation to use for ancestor classes.

## Declaration

```swift
enum AncestorRepresentation
```

## Overview

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

- [Mirror.AncestorRepresentation.customized(_:)](swift/mirror/ancestorrepresentation/customized(_:).md)
- [Mirror.AncestorRepresentation.generated](swift/mirror/ancestorrepresentation/generated.md)
- [Mirror.AncestorRepresentation.suppressed](swift/mirror/ancestorrepresentation/suppressed.md)
