Skip to content

andreabusi/UIColor-Flat

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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