Open nikans opened 4 years ago
Any solution here?
@nikans @vBoykoGit please take a look at https://github.com/sunshinejr/SwiftyUserDefaults/issues/206 and let me know if it helps!
@nikans @vBoykoGit please take a look at #206 and let me know if it helps!
I'm facing the same problem and this also doesn't work. Can you help :(
@huybuidac you need to also define _defaultsArray
in addition to _defaults
to fully implement the DefaultsSerializable
protocol, e.g.:
public static var _defaults: DefaultsCodableBridge<Self> { return DefaultsCodableBridge() }
public static var _defaultsArray: DefaultsCodableBridge<[Self]> { return DefaultsCodableBridge() }
It's ok if the raw representable enum type only conforms to Decodable, though.