Skip to content

Easily get+set CALayer background and border colors as UIColors in an ARC-safe fashion.

Notifications You must be signed in to change notification settings

rentzsch/CALayer-jr_UIColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CALayer+jr_UIColor

Easily get+set CALayer background and border colors as UIColors in an ARC-safe fashion.

Lets you write:

view.layer.jr_backgroundUIColor = [UIColor colorWithRed:0.2 green:0.3 blue:0.4 alpha:1.0];

Instead of having to write:

UIColor *color = [UIColor colorWithRed:0.2 green:0.3 blue:0.4 alpha:1.0];
view.layer.backgroundColor = color.CGColor;

About

Easily get+set CALayer background and border colors as UIColors in an ARC-safe fashion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published