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

# init(unsafeAddress:borrowing:)

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

```
init<Owner>(unsafeAddress pointer: UnsafePointer<Value>, borrowing owner: borrowing Owner) where Owner : ~Copyable, Owner : ~Escapable
```

## Parameters

`pointer`

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

`owner`

The owning instance that this `Ref` 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)