I am trying to show my ControlWidget
in control center for iOS 18 beta 2 but it is not appearing in when I am trying to add it. My intents are appearing in shortcuts etc but they are not appearing in control center.
here is my code:
@available(iOS 18.0, *)
struct MyControlWidget: ControlWidget {
let kind = "MyControlWidget"
var body: some ControlWidgetConfiguration {
AppIntentControlConfiguration(
kind: kind,
intent: MyIntent.self
) { configuration in
ControlWidgetButton (action: configuration) {
Image (systemName: "pencil")
Text (configuration.target.name ?? "Test")
}
}
}
}
@available(iOS 18.0, *)
extension MyIntent: ControlConfigurationIntent {}