Open kevin-hv opened 3 years ago
Hey! I really missed the functionality of saving objects conforming to the Codable protocol.
This code lives in an extension now in my projects. But I was wondering whether this could get into the main codebase.
Example code:
struct UserInfo : Codable { let firstName : String let lastName : String } KeychainWrapper.standard.set(UserInfo(firstName: "Kevin", lastName: "Varga Halász"), forKey: KeychainWrapper.Key.userInfo.rawValue) guard let userInfo : UserInfo = KeychainWrapper.standard.codable(forKey: .userInfo) else { return }
Hey! I really missed the functionality of saving objects conforming to the Codable protocol.
This code lives in an extension now in my projects. But I was wondering whether this could get into the main codebase.
Example code: