UIColor

public extension UIColor
  • Undocumented

    Declaration

    Swift

    convenience init(red: Int, green: Int, blue: Int)
  • Undocumented

    Declaration

    Swift

    convenience init(rgb: Int)
  • UIColor generetor with hex code

    Declaration

    Swift

    static func hex(hex: String) -> UIColor

    Parameters

    hex

    The hex value with # or without it

    Return Value

    UIColor for hex code

  • Returns hex string of color

    Declaration

    Swift

    var hexString: NSString { get }
  • Modify UIColor value with params

    Declaration

    Swift

    func modified(withAdditionalHue hue: CGFloat = 0.0,
                  additionalSaturation: CGFloat = 0.0,
                  additionalBrightness: CGFloat) -> UIColor

    Parameters

    hue

    Hue value

    additionalSaturation

    Saturation value

    additionalBrightness

    Brightness value

    Return Value

    New UIColor