---
title: customMirror
framework: swift
role: symbol
role_heading: Instance Property
path: swift/optional/custommirror
---

# customMirror

The custom mirror for this instance.

## Declaration

```swift
var customMirror: Mirror { get }
```

## Discussion

Discussion If this type has value semantics, the mirror should be unaffected by subsequent mutations of the instance.

## See Also

### Inspecting an Optional

- [hash(into:)](swift/optional/hash(into:).md)
- [unsafelyUnwrapped](swift/optional/unsafelyunwrapped.md)
- [debugDescription](swift/optional/debugdescription.md)
