-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
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:
var preferences = UserDefaults.standard
preferences["color", .archive] = UIColor.red
let color = preferences["color", .archive] as? UIColor
print(color)
var keychainPreferences = KeychainPreferences.sharedInstance
keychainPreferences["color2", .archive] = UIColor.red
let color2 = keychainPreferences["color2", .archive] as? UIColor
print(color2)
Results in:
Optional(UIExtendedSRGBColorSpace 1 0 0 1)
nil
Reactions are currently unavailable