UIColor
class UIColor : NSObject, NSSecureCoding, NSCopying
-
Implements
GradientColorprotocol, by default current color is startColor for gradient definationDeclaration
Swift
public var startColor: UIColor { get }
-
Creates color from hexadecimal string
Example input string cab be with # prefix i.e. #FF00FF or FF00FF
Declaration
Swift
public convenience init(_ hexString: String, alpha: CGFloat = 1.0)Parameters
hexStringValid hexadecimal string
alphaAlpha value of color, default is 1.0
-
hexadecimal (a hex triplet) representation of current color.
Declaration
Swift
public var hexString: String { get }
View on GitHub
Install in Dash
UIColor Extension Reference