ASCFlatUIColor 0.1.0

ASCFlatUIColor 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total10,048
Week0
Month0

Installs

Apps85
Pod Tries10
Test Targets10
Watch Apps1
powered by Segment

GitHub

Stars133
Watchers4
Forks10
Issues1
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 175



A collection of all Flat UI Colors used in Flat UI.

A list of all available colors can also be found here: flatuicolors.com.

Usage

This repository contains an example project that uses the methods provided by ASCFlatUIColor - just build and run to see all colors in a simple collection view.

Wherever you want to use ASCFlatUIColor, import the header file as follows:

#import "ASCFlatUIColor.h"

or when using CocoaPods:

#import <ASCFlatUIColor/ASCFlatUIColor.h>

To get a color simply call the matching class method:

UIColor *color = [ASCFlatUIColor emeraldColor];

or use the convenience class method colorWithFlatUIColorType: and pass an enumerated value to return a color.

UIColor *color = [ASCFlatUIColor colorWithFlatUIColorType:ASCFlatUIColorTypeEmerald];

The second approach comes in handy if you want to use a color based on a type or return a random color at runtime.

Unit tests should serve as an additional documentation.

Why it's not an UIColor Category?

In short: To avoid to prefix all methods. But if you would prefer a Category just create an issue.

Installation

Manually

Drag the ASCFlatUIColor.h and ASCFlatUIColor.m source files to your project and you are done.

Author

André Schneider, @aschndr

License

ASCFlatUIColor is available under the MIT license. See the LICENSE file for more info.