Post

Replies

Boosts

Views

Activity

Reply to Crash: Call must be on main thread
Nothing helps until extension UNUserNotificationCenter: @retroactive @unchecked Sendable {} extension UNNotificationResponse: @retroactive @unchecked Sendable {} ... @MainActor public func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async { // Crash free } Thanks to https://stackoverflow.com/a/79670394/14538356
Jun ’25
Reply to Async task cancelled in Refreshable Modifier on Scrollview on iOS 16
Just wrap your await exploreVM.loadQuotes() to unstructured task Task { await exploreVM.loadQuotes() }
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to App crashes when I try to delete data with SwiftData
You have to clear binding property. https://youtu.be/_QMalUGTM4E?si=-nlNsGqXkIFfszFp find Fix a crash episode in this video (9:41)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Crash: Call must be on main thread
Nothing helps until extension UNUserNotificationCenter: @retroactive @unchecked Sendable {} extension UNNotificationResponse: @retroactive @unchecked Sendable {} ... @MainActor public func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async { // Crash free } Thanks to https://stackoverflow.com/a/79670394/14538356
Replies
Boosts
Views
Activity
Jun ’25