Open jsm174 opened 5 years ago
thanks for the report
maybe keychainPreferences["color2", .archive] return a Data
Did a little more testing and this version seems to work:
let keychainPreferences = KeychainPreferences.sharedInstance
keychainPreferences.set(objectToArchive: UIColor.red, forKey: "color3")
let color3 = keychainPreferences.unarchiveObject(forKey: "color3")
print(color3)
I believe I am having an issue when trying to get archived objects from the keychain.
They always come back as nil.
Take the following code:
Results in: