Skip to content
master
Switch branches/tags
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

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

Resources

Releases

No releases published

Packages

No packages published

Languages