<!--
{
  "availability" : [
    "watchOS: 7.0.0 - 9.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WKExtensionDelegateAdaptor/init(_:)-2556",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26WKExtensionDelegateAdaptorVyACyxGxmcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a WatchKit extension delegate adaptor.

```
@MainActor @preconcurrency init(_ delegateType: DelegateType.Type = DelegateType.self)
```

## Parameters

`delegateType`

The type of extension delegate that you
define in your app, which conforms to the
<doc://com.apple.documentation/documentation/WatchKit/WKExtensionDelegate>
protocol.

## Discussion

Call this initializer indirectly by creating a property with the
`WKExtensionDelegateAdaptor` property wrapper from inside your
`App` declaration:

```
@main
struct MyApp: App {
    @WKExtensionDelegateAdaptor private var extensionDelegate: MyExtensionDelegate

    var body: some Scene { ... }
}
```

SwiftUI initializes the delegate and manages its lifetime, calling upon
it to handle extension delegate callbacks.

If you want SwiftUI to put the instantiated delegate in the
`Environment`, make sure the delegate class also conforms to the
<doc://com.apple.documentation/documentation/Combine/ObservableObject>
protocol. That causes SwiftUI to invoke the `init(_:)-2btqx`
initializer rather than this one.

---

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)