RSDColorSwatch
public struct RSDColorSwatch : Codable, Equatable, Hashable, RSDColorFamily
A color swatch refers to a series of color tiles within the same family.
-
The name of the color swatch.
Declaration
Swift
public let name: String
-
The color tiles included in this swatch.
Declaration
Swift
public let colorTiles: [RSDColorTile]
-
Get the mapping for a given shade.
Declaration
Swift
public func mapping(forShade shade: Shade) -> RSDColorMapping
Parameters
shade
The shade of the color.
Return Value
The color mapping for that shade.