feat: Add KeychainAccess

This commit is contained in:
Boyko Mihail 2021-04-28 23:00:49 +03:00
parent 9eef7ee54b
commit 80a7e60e46
2 changed files with 2 additions and 4 deletions

View File

@ -24,6 +24,8 @@ import Foundation
import KeychainAccess
import TIFoundationUtils
typealias KeychainCodableBackingStore<T: Codable> = CodableKeyValueBackingStore<Keychain, T>
extension Keychain: CodableKeyValueStorage {
public func codableObject<Value: Decodable>(forKey key: StorageKey<Value>,
decoder: CodableKeyValueDecoder) throws -> Value {

View File

@ -1,4 +0,0 @@
import KeychainAccess
import TIFoundationUtils
typealias KeychainCodableBackingStore<T: Codable> = CodableKeyValueBackingStore<Keychain, T>