I also encountered the same problem
struct IncrementIntent: AppIntent {
static var title: LocalizedStringResource = "Increment Count"
func perform() async throws -> some IntentResult {
Counter.incrementCount()
return .result()
}
}
I used URLSession to initiate a network request in Counter.incrementCount().it will work when I am debugging connect with Xcode. But, when I don't connect xcode, it will not work.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: