A sample category for UIColor class who adds flat colors from http://flatuicolors.com/
Simply add UIColor+Flat.swift to your project! Here are the new colors:
class var turquiose: UIColor
class var greenSea: UIColor
class var emerald: UIColor
class var nephritis: UIColor
class var peterRiver: UIColor
class var belizeHole: UIColor
class var amethyst: UIColor
class var wisteria: UIColor
class var wetAsphalt: UIColor
class var midnightBlue: UIColor
class var sunFlower: UIColor
class var orangeFlat: UIColor
class var carrot: UIColor
class var pumpkin: UIColor
class var alizarin: UIColor
class var pomegranate: UIColor
class var clouds: UIColor
class var silver: UIColor
class var concrete: UIColor
class var asbestos: UIColor
The extension also provides two utility methods:
func bd_colorComponents() -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
func bd_hex() -> String
Enjoy! :]
UIColor+Flat is ready for Swift 4!
There is a simple demo app that shows new colors. Some examples: