Skip to content

andreabusi/UIColor-Flat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages