Post

Replies

Boosts

Views

Activity

Reply to Widget AppIntent perform network request
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:
Dec ’24