<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/FocusedValue/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12FocusedValueVyACyxGs7KeyPathCyAA0C6ValuesVxSgGcfc::OverloadGroup"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

A new property wrapper for the given key path.

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

## Parameters

`keyPath`

The key path for the focus value to read.

## Discussion

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

---

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)