Color

public struct Color : Decodable

Line or branch color information

  • Enum type of line or branch

    See more

    Declaration

    Swift

    public enum Mode : CustomStringConvertible
  • Type of line or branch

    Declaration

    Swift

    public var mode: Mode { get }
  • Lines or branches for this Color

    Declaration

    Swift

    public var lineOrBranch: [String] { get }
  • as UIColor

    Throws

    If RGBHex format is invalid

    Declaration

    Swift

    public func asUIColor() throws -> UIColor

    Return Value

    Color value as a UIColor

  • RGB Hex value

    Declaration

    Swift

    public let rgbHex: String
  • Pantone CVC value

    Declaration

    Swift

    public let pantoneCVC: String
  • CMYK value

    Declaration

    Swift

    public let cmyk: String