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

iOS training Next iOS training: 24. - 28. Juni 2019, Frankfurt am Main
Contact About me · Contact