UIColor

UIColor.playground is an starting point to experiment with UIColor in an interactive playground:

UIView

Color constants

UIColor.black
UIColor.darkGray
UIColor.lightGray
UIColor.white
UIColor.gray
UIColor.red
UIColor.green
UIColor.blue
UIColor.cyan
UIColor.yellow
UIColor.magenta
UIColor.orange
UIColor.purple
UIColor.brown
UIColor.clear

Color by component value

UIColor(white: 0.5, alpha: 1.0)
UIColor(hue: 0.5, saturation: 0.4, brightness: 1.0, alpha: 1.0)
UIColor(red: 0.6, green: 1.0, blue: 1.0, alpha: 1.0)

See also

Btn training bbbdf557d2 Next iOS training: 25. Februar - 01. März 2019, Stuttgart
Btn about 5378472193 About me · Contact