We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f39d02 commit f50f029Copy full SHA for f50f029
swift/Sources/iMessageMax/Contacts/ContactResolver.swift
@@ -5,7 +5,9 @@ import Foundation
5
actor ContactResolver {
6
private var cache: [String: String] = [:] // handle -> name
7
private var isInitialized = false
8
- private let store = CNContactStore()
+ // CNContactStore is not Sendable, so we mark it nonisolated(unsafe)
9
+ // This is safe because we only use it from within actor-isolated methods
10
+ nonisolated(unsafe) private let store = CNContactStore()
11
12
// MARK: - Authorization
13
0 commit comments