A sample category for UIColor class who adds flat colors from http://flatuicolors.com/
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UIColor+Flat
UIColor+Flat_Demo
README.md

README.md

UIColor+Flat

A sample category for UIColor class who adds flat colors from http://flatuicolors.com/

Usage

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! :]

Compatibility

UIColor+Flat is ready for Swift 4!

Colors

There is a simple demo app that shows new colors. Some examples:

UIColor+FlatDemo app 1

UIColor+FlatDemo app 2

UIColor+FlatDemo app 3