Post

Replies

Boosts

Views

Activity

Reply to .backgroundTask in SwiftUI cannot compile
I also have the same problem. May I ask what the solution is? BackgroundTask still cannot run in blank projects @main struct TestApp: App { var body: some Scene { WindowGroup { ContentView() } .backgroundTask(.appRefresh("task")) { await update() } } func update() async{ print("ran background") } }
Jan ’24