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

# Mirror.AncestorRepresentation.generated

Generates a default mirror for all ancestor classes.

## Declaration

```swift
case generated
```

## Discussion

Discussion This case is the default when initializing a Mirror instance. When you use this option, a subclass’s mirror generates default mirrors even for ancestor classes that conform to the CustomReflectable protocol. To avoid dropping the customization provided by ancestor classes, an override of customMirror should pass .customized({ super.customMirror }) as ancestorRepresentation when initializing its mirror.
