Skip to content

Commit cc9209d

Browse files
authored
Add Sendable conformance (#235)
1 parent ad92cae commit cc9209d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SimpleKeychain/Accessibility.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Security
22

33
/// Represents the accessibility types of Keychain items. It's a mirror of `kSecAttrAccessible` values.
4-
public enum Accessibility: RawRepresentable {
4+
public enum Accessibility: RawRepresentable, @unchecked Sendable {
55

66
/// The data in the Keychain item can be accessed only while the device is unlocked by the user.
77
/// See [kSecAttrAccessibleWhenUnlocked](https://developer.apple.com/documentation/security/ksecattraccessiblewhenunlocked).

SimpleKeychain/SimpleKeychain.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import Security
33
#if canImport(LocalAuthentication)
4-
import LocalAuthentication
4+
@preconcurrency import LocalAuthentication
55
#endif
66

77
typealias RetrieveFunction = (_ query: CFDictionary, _ result: UnsafeMutablePointer<CFTypeRef?>?) -> OSStatus
@@ -10,7 +10,7 @@ typealias RemoveFunction = (_ query: CFDictionary) -> OSStatus
1010
/// A simple Keychain wrapper for iOS, macOS, tvOS, and watchOS.
1111
/// Supports sharing credentials with an **access group** or through **iCloud**, and integrating
1212
/// **Touch ID / Face ID**.
13-
public struct SimpleKeychain {
13+
public struct SimpleKeychain: @unchecked Sendable {
1414
let service: String
1515
let accessGroup: String?
1616
let accessibility: Accessibility

0 commit comments

Comments
 (0)