• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of all Flat UI Colors.

ASCFlatUIColor

Build Status Version Platform

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

From CocoaPods

ASCFlatUIColor is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "ASCFlatUIColor"

Manually

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

Author

Andrรฉ Schneider, @_schneiderandre

License

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