UIColor
public extension UIColor
-
Generates random color
Declaration
Swift
static var random: UIColor { get }
-
Initialize UIColor from hexadecimal color code
Declaration
Swift
convenience init(hex: String)Parameters
hexHexadecimal Color Code
-
Returns a color is dark or not
Declaration
Swift
var isDarkColor: Bool { get }
View on GitHub
UIColor Extension Reference