UIColor
public extension UIColor
-
随机色
Declaration
Swift
class var random: UIColor { get } -
十六进制颜色
Declaration
Swift
convenience init(hex: UInt)Parameters
hex颜色 0xFFFFFF
-
RGB颜色
Declaration
Swift
convenience init(r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat = 1.0)Parameters
rgbr g b
View on GitHub
Install in Dash
UIColor Extension Reference