Skip to content
A collection of categories and utilities that extend UIColor
Objective-C JavaScript Other
Latest commit 31d8c65 Jun 22, 2016 @orta orta committed with dblock Add tvOS support (#36)
Failed to load latest commit information.
Demo.xcodeproj Added EDColor+iOS7. Apr 23, 2014
EDColor Add color operation methods Jul 10, 2014
Scripts Cleanup package.json for scripts Sep 15, 2012
Tests.xcodeproj Added EDColor+iOS7. Apr 23, 2014
Tests Add tests saturate, lighten, darken Jul 11, 2014
.gitignore Add Podfile.lock to .gitignore. Apr 23, 2014
.travis.yml Travis will run pod install for us. Apr 23, 2014 Added CHANGELOG and updated CONTRIBUTING guidelines. Jul 10, 2014 Added CHANGELOG and updated CONTRIBUTING guidelines. Jul 10, 2014
EDColor.podspec Add tvOS support (#36) Jun 22, 2016 Initial commit Sep 15, 2012
Podfile Reorganized project around CocoaPods and a combined workspace. Apr 14, 2014 Use flat build status icon and added CocoaPods version and platform b… May 4, 2014


Build Status Version Platform

Getting Started

The quickest way to get started with EDColor is with CocoaPods, but otherwise you can add the EDColor directory to your project and...

#import "EDColor.h"

This will automatically bring in all of the various categories and classes that make up the library. Alternatively, if you only need the functionality from a single part of EDColor, you can just import that specific header as the library was designed to be completely modular and (thus) decoupled.


UIColor *green   = [UIColor colorWithHex:0x00FF00];
UIColor *blue    = [UIColor colorWithHex:0x0000FF andAlpha:0.5f];
UIColor *gray    = [UIColor colorWithHexString:@"#CCC"];


UIColor *red     = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];
UIColor *blue    = [red offsetWithHue:-0.56f saturation:0.0f brightness:0.0f alpha:0.0f];


UIColor *red     = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];
UIColor *pink    = [red offsetWithHue:0.0f saturation:0.0f lightness:0.82f alpha:0.0f];


UIColor *red            = [UIColor colorWithRed:1.0f green:0.0f blue:0.0f alpha:1.0f];
UIColor *brighterRed    = [red offsetWithLightness:15.0f a:0.0f b:0.0f alpha:0.0f];


Because crayons are fun! Full list of colors:

UIColor *mint    = [UIColor colorWithCrayola:@"Magic Mint"];
UIColor *blue    = [UIColor colorWithCrayola:@"Midnight Blue"];
UIColor *rorange = [UIColor colorWithCrayola:@"Orange Red"];


Some of the iOS7 colors from

UIColor *yellow    = [UIColor iOS7yellowColor];

UIColor *greenGradientStart = [UIColor iOS7greenGradientStartColor];
UIColor *greenGradientEnd = [UIColor iOS7greenGradientEndColor];


Install CocoaPods with gem install cocoapods. Run pod install. Open EDColor.xcworkspace.


The test suite for EDColor is built using OCUnit. To run the test suite, simply open the project in XCode and choose "test" from the Product menu. Please run and augment the tests prior to submitting a pull request.

iOS Support

EDColor is tested on iOS 5 and up. Older versions of iOS may work but are not currently supported.


EDColor is built using ARC. If you are including EDColor in a project that does not use Automatic Reference Counting (ARC), you will need to set the -fobjc-arc compiler flag on all of the EDColor source files. To do this in Xcode, go to your active target and select the "Build Phases" tab. Now select all EDColor source files, press Enter, insert -fobjc-arc and then "Done" to enable ARC for EDColor.

Something went wrong with that request. Please try again.