Mark NotificationManager @unchecked Sendable

Needed because self is captured in @Sendable closures passed to
UNUserNotificationCenter callbacks. Safe: the only mutable state
(isAuthorized) is exclusively written on the main thread.

Co-Authored-By: Kutesir <tqwyy79vzn@privaterelay.appleid.com>
This commit is contained in:
Robin Kutesa
2026-06-01 02:03:01 +03:00
parent fc6d5a91bd
commit 409b4f8ee6

View File

@@ -1,7 +1,7 @@
import SwiftUI import SwiftUI
import UserNotifications import UserNotifications
final class NotificationManager: NSObject, ObservableObject { final class NotificationManager: NSObject, ObservableObject, @unchecked Sendable {
static let shared = NotificationManager() static let shared = NotificationManager()
@Published var isAuthorized = false @Published var isAuthorized = false