|ReleasedLast Release||Dec 2014|
Maintained by Unclaimed.
|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.
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:
or when using CocoaPods:
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.
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.