UIColor
public extension UIColor
-
Initialzer based on hex string.
Declaration
Swift
convenience init?(hex: String)Parameters
hexStringIt can either be uppercase or lowercase and contain or not a leading # and specify or not the alpha component.
UIColor Extension Reference