A simple way to generate UIColor by copying and pasting RGB code in swift project.
let color = UIColor.rgb(0xEB79BC) #pink
let color = UIColor.rgb(0x51E0BF) #green
let color = UIColor.rgb(0x5183E0) #blue
#color with alpha
let color = UIColor.rgba(0xEB79BC, 0.8) #pink
let color = UIColor.rgba(0x51E0BF, 0.9) #green
let color = UIColor.rgba(0x5183E0, 0.7) #blue###How to add?
Simply drag the Colors.swift file into your swift project.
###pre-defined colors
let color = UIColor.flatRedColor()
let color = UIColor.flatGreenColor()
let color = UIColor.flatDarkBlueColor()If you like to add colors to Colors, please feel free to open a new pull request.
Color is released under the MIT License.