Control PC playback through interactive Live Activity intents
This commit is contained in:
@@ -22,7 +22,7 @@ enum KeychainStore {
|
||||
|
||||
static func save(_ connection: Connection) throws {
|
||||
let values: [String: Any] = [kSecValueData as String: try JSONEncoder().encode(connection),
|
||||
kSecAttrAccessible as String: kSecAttrAccessibleWhenUnlockedThisDeviceOnly]
|
||||
kSecAttrAccessible as String: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly]
|
||||
var status = SecItemUpdate(query as CFDictionary, values as CFDictionary)
|
||||
if status == errSecItemNotFound {
|
||||
status = SecItemAdd(query.merging(values) { _, new in new } as CFDictionary, nil)
|
||||
|
||||
Reference in New Issue
Block a user