Skip to content

Commit d0e313d

Browse files
committed
Fix Swift 6 concurrency: mark EKEventStore as nonisolated(unsafe) in actor
1 parent 2df3d31 commit d0e313d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/Binnacle/Helpers/EventStoreManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import Foundation
66
actor EventStoreManager {
77
static let shared = EventStoreManager()
88

9-
private let store = EKEventStore()
9+
// EKEventStore is not Sendable, but all access is serialized through this actor.
10+
// nonisolated(unsafe) suppresses the false-positive concurrency warning.
11+
nonisolated(unsafe) private let store = EKEventStore()
1012

1113
private var eventsAuthorized = false
1214
private var remindersAuthorized = false

0 commit comments

Comments
 (0)