---
title: "init(_:)"
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(_:)"
---

# init(_:)

Initializes an instance of Ref with the given borrowed value. This creates a constant reference to that value preventing writes on the original value while this reference is still active.

## Declaration

```swift
init(_ value: borrowing Value)
```
