<!--
{
  "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/init(reflecting:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s6MirrorV10reflectingAByp_tcfc"
  },
  "title" : "init(reflecting:)"
}
-->

# init(reflecting:)

Creates a mirror that reflects on the given instance.

```
init(reflecting subject: Any)
```

## Parameters

`subject`

The instance for which to create a mirror.

## Discussion

If the dynamic type of `subject` conforms to `CustomReflectable`, the
resulting mirror is determined by its `customMirror` property.
Otherwise, the result is generated by the language.

If the dynamic type of `subject` has value semantics, subsequent
mutations of `subject` will not observable in `Mirror`.  In general,
though, the observability of mutations is unspecified.

---

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)