Maybe we need to use symbol images, not a image, you can try it
Post
Replies
Boosts
Views
Activity
I have the same issue, it can open app, but appdelegate won't perform 'openURL'
struct TestControlCenterControl: ControlWidget {
var body: some ControlWidgetConfiguration {
StaticControlConfiguration(
kind: "com.intsig.TestControlWidget.TestControlCenter",
content: {
ControlWidgetButton(action: OpenMainAppIntent()) {
Image(systemName: "heart")
}
}
)
}
}
I am using the following code in iOS18 beta version, but i don‘t know how to add widgetURL
no, my case is ios18 ControlWidgetButton
It didn't work, have you tried this ?
Yes, this code run on my main capture app, when the app 'didFinishLaunchingWithOptions', i will run this code
I have solved this problem with a correct answer