TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
A collection of all Flat UI Colors used in Flat UI.
A list of all available colors can also be found here: flatuicolors.com.
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.
Drag the ASCFlatUIColor.h
and ASCFlatUIColor.m
source files to your project and you are done.
André Schneider, @aschndr
ASCFlatUIColor is available under the MIT license. See the LICENSE file for more info.