UIColor

  • Parse a hex string for its ARGB components and return a UIColor instance

    Declaration

    Swift

    public static func colorFromHexString(_ colorString: String) -> UIColor

    Parameters

    colorString

    A string representing the color hex to be parsed

    Return Value

    A UIColor instance containing the parsed color