RSDColorKey
public struct RSDColorKey : Codable, Equatable, Hashable, RSDColorMapping
The color key is a model object that contains the information needed by the color design system to describe the colors associated with a given set of components.
-
The level for the color as described in the design documents for a given app.
Declaration
Swift
public let index: Int
-
The swatch of colors associated with this color key.
Declaration
Swift
public let swatch: RSDColorSwatch
-
A list of the color tiles within this swatch.
Declaration
Swift
public var colorTiles: [RSDColorTile] { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
The encoder will always encode the color swatch so that apps can reference a color swatch specifically without having to be concerned with level rules.
Declaration
Swift
public func encode(to encoder: Encoder) throws