---
title: "init(unsafeAddress:borrowing:)"
framework: Swift
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swift/ref/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.

## Declaration

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

## Parameters

- `owner`: The owning instance that this Ref instance’s lifetime is based on.
