|
|
@@ -137,7 +137,7 @@ open class KeychainSwift {
|
|
|
withAccess access: KeychainSwiftAccessOptions? = nil) -> Bool {
|
|
|
|
|
|
let bytes: [UInt8] = value ? [1] : [0]
|
|
|
- let data = Data(bytes: bytes)
|
|
|
+ let data = Data(bytes)
|
|
|
|
|
|
return set(data, forKey: key, withAccess: access)
|
|
|
}
|
|
|
@@ -182,7 +182,7 @@ open class KeychainSwift {
|
|
|
var query: [String: Any] = [
|
|
|
KeychainSwiftConstants.klass : kSecClassGenericPassword,
|
|
|
KeychainSwiftConstants.attrAccount : prefixedKey,
|
|
|
- KeychainSwiftConstants.returnData : kCFBooleanTrue,
|
|
|
+ KeychainSwiftConstants.returnData : kCFBooleanTrue!,
|
|
|
KeychainSwiftConstants.matchLimit : kSecMatchLimitOne
|
|
|
]
|
|
|
|