Closed KyoheiG3 closed 6 years ago
Hi @nmdias
Can Key class inherit a class like following, for example?
Key
public class AnyKey {} public final class Key<ValueType: Codable>: AnyKey {}
This makes it possible to do following.
extension AnyKey { static let key = Key<String>("someKey") } defaults.set("Codable FTW 😃", for: .key)
My goal is like #9.
Thanks.
Thank you for the suggestion @KyoheiG3, it worked out really well 😃
Hi @nmdias
Can
Key
class inherit a class like following, for example?This makes it possible to do following.
My goal is like #9.
Thanks.