UIColor

extension UIColor
  • The shorthand three-digit hexadecimal representation of color.

    RGB defines to the color #RRGGBB.

    Declaration

    Swift

    public convenience init(hex3: UInt16, alpha: CGFloat = 1)

    Parameters

    hex3

    Three-digit hexadecimal value.

    alpha

    0.0 - 1.0. The default is 1.0.

  • The shorthand four-digit hexadecimal representation of color with alpha.

    RGBA defines to the color #RRGGBBAA.

    Declaration

    Swift

    public convenience init(hex4: UInt16)

    Parameters

    hex4

    Four-digit hexadecimal value.

  • The six-digit hexadecimal representation of color of the form #RRGGBB.

    Declaration

    Swift

    public convenience init(hex6: UInt32, alpha: CGFloat = 1)

    Parameters

    hex6

    Six-digit hexadecimal value.

  • The six-digit hexadecimal representation of color with alpha of the form #RRGGBBAA.

    Declaration

    Swift

    public convenience init(hex8: UInt32)

    Parameters

    hex8

    Eight-digit hexadecimal value.

  • Hex string of a UIColor instance.

    Declaration

    Swift

    public func hexString(_ includeAlpha: Bool = true) -> String

    Parameters

    includeAlpha

    Whether the alpha should be included.

  • Undocumented

    Declaration

    Swift

    public static func lunaBlue() -> UIColor
  • Undocumented

    Declaration

    Swift

    public static func lunaAlto() -> UIColor
  • Undocumented

    Declaration

    Swift

    public static func lunaGray() -> UIColor
  • Undocumented

    Declaration

    Swift

    public static func lunaLightGray() -> UIColor
  • Undocumented

    Declaration

    Swift

    public static func lunaBlack() -> UIColor