<!--
{
  "availability" : [
    "watchOS: 7.0.0 - 9.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WKExtensionDelegateAdaptor/projectedValue",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26WKExtensionDelegateAdaptorVAA7Combine16ObservableObjectRzrlE14projectedValueAA08ObservedH0V7WrapperVyx_Gvp"
  },
  "title" : "projectedValue"
}
-->

# projectedValue

A projection of the observed object that provides bindings to its
properties.

```
@MainActor @preconcurrency var projectedValue: ObservedObject<DelegateType>.Wrapper { get }
```

## Discussion

Use the projected value to get a binding to a value that the delegate
publishes. Access the projected value by prefixing the name of the
delegate instance with a dollar sign (`$`). For example, you might
publish a Boolean value in your extension delegate:

```
class MyExtensionDelegate: NSObject, WKExtensionDelegate, ObservableObject {
    @Published var isEnabled = false

    // ...
}
```

If you declare the delegate in your [`App`](/documentation/SwiftUI/App) using the
[`WKExtensionDelegateAdaptor`](/documentation/SwiftUI/WKExtensionDelegateAdaptor) property wrapper, you can get
the delegate that SwiftUI instantiates from the environment and
access a binding to its published values from any view in your extension:

```
struct MyView: View {
    @EnvironmentObject private var extensionDelegate: MyExtensionDelegate

    var body: some View {
        Toggle("Enabled", isOn: $extensionDelegate.isEnabled)
    }
}
```

---

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)