---
title: "init(_:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/focusedbinding/init(_:)"
---

# init(_:)

A new property wrapper for the given key path.

## Declaration

```swift
init(_ keyPath: KeyPath<FocusedValues, Binding<Value>?>)
```

## Parameters

- `keyPath`: The key path for the focus value to read.

## Discussion

Discussion The value of the property wrapper is updated dynamically as focus changes and different published bindings go in and out of scope.
