. It's an App Intent like this:
static var title: LocalizedStringResource = "DoneIntent"
@Parameter(title: "Task ID")
var taskId: String
@Parameter(title: "Widget ID")
var widgetID: String
init() { }
init(taskID: String, widgetID: String) {
self.taskId = taskID
self.widgetID = widgetID
}
func perform() async throws -> some IntentResult {
// Do somethings with Data
return .result()
}
Post
Replies
Boosts
Views
Activity
My app not requires Intent but the swiftui view i use for Widget does and i preview the widget on my app through UIHostingViewController