UIColor

public extension UIColor
  • Initialzer based on hex string.

    Declaration

    Swift

    convenience init?(hex: String)

    Parameters

    hexString

    It can either be uppercase or lowercase and contain or not a leading # and specify or not the alpha component.