Code Monkey home page Code Monkey logo

ascflatuicolor's Introduction

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, @aschndr

License

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

ascflatuicolor's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.