. 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()
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: