Key

public final class Key<ValueType> : DefaultsKey where ValueType : Decodable, ValueType : Encodable

Represents a Key with an associated generic value type conforming to the Codable protocol.

static let someKey = Key<ValueType>("someKey")
  • Undocumented

    Declaration

    Swift

    public init(_ key: String)