Open Source iOS Library Providing Easy Access To Great Looking Colors For Creating Gradients

I’ve mentioned a number of libraries for working with colors such as the Chameleon library providing a number of helpers for working with flat UI colors.

Here’s an open source library providing a wide selection of great looking gradients called UIColor-uiGradients from Kai Inui.

UIColor-uiGradients provides a wide assortment of colors from uiGradients which you can use with CAGradientLayer to create great looking gradients like in this source code example from the readme:

UIColor *startColor = [UIColor uig_emeraldWaterStartColor];
UIColor *endColor = [UIColor uig_emeraldWaterEndColor];

CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = view.bounds;
gradient.startPoint = CGPointMake(0, 0);
gradient.endPoint = CGPointMake(view.frame.size.width, 0);
gradient.colors = @[(id)[startColor CGColor], (id)[endColor CGColor], nil];

[view.layer insertSublayer:gradient atIndex:0];

You can find UIColor-uiGradients on Github here.

You can find examples for the available colors over on UIGradients.com

A nice collection of colors for creating great looking gradients.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source iOS Library Providing Easy Access To Great Looking Colors For Creating Gradients

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *