<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/MutableRef/init(unsafeAddress:mutating:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s10MutableRefVsRi_zrlE13unsafeAddress8mutatingAByxGSpyxG_qd__ztcRi_d__Ri0_d__lufc"
  },
  "title" : "init(unsafeAddress:mutating:)"
}
-->

# init(unsafeAddress:mutating:)

Unsafely initializes an instance of `MutableRef` using the given
‘unsafeAddress’ as the mutable reference based on the mutating lifetime of
the given ‘owner’ argument.

```
init<Owner>(unsafeAddress pointer: UnsafeMutablePointer<Value>, mutating owner: inout Owner) where Owner : ~Copyable, Owner : ~Escapable
```

## Parameters

`pointer`

The address to use to mutably reference an
instance of type `Value`.

`owner`

The owning instance that this `MutableRef` instance’s
lifetime is based on.

---

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)