Dictionary

extension Dictionary where Key == ColorType, Value == UIColor

Available where Key == ColorType, Value == UIColor

  • Returns the actual color for a given color type and mode.

    Declaration

    Swift

    func color(for type: ColorType) -> UIColor
  • Allows color to be updated by first party users

    Declaration

    Swift

    mutating func update(type: ColorType, with color: UIColor)