Closed ETmanwenhan closed 5 years ago
Hey @ETmanwenhan. To use Codable
with SwiftyUserDefaults
you need to implement DefaultsSerializable
as well, so the fix would be to add it to the implementation list:
class Loginer: Codable, HandyJSON, DefaultsSerializable {
I wonder how you were able to create a key without implementing DefaultsSerializable
though 🤔 Can you copy the line where you create your .loginInfo
key? + Can you also tell me something about this HandyJSON
type?
Closing due to inactivity.
The save object has the following exception.