Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

An Objective-C library for handling Adobe Color Swatch files in the ACO format

License

Notifications You must be signed in to change notification settings

frenetisch-applaudierend/acokit

Repository files navigation

ACOKit

An Objective-C library for handling Adobe Color Swatches (.aco files).

Usage

Here is a sample that loads a color swatch from the appliation bundle and reads some colors.

// load the file
NSURL *url = [[NSBundle mainBundle] URLForResource:@"MyColors" withExtension:@"aco"];
ACOColorSwatch *colors = [ACOColorSwatch colorSwatchFromFileAtURL:url error:NULL];

// read some colors
UIColor *backgroundColor = colors[@"Picton Blue"]; // you can access colors by name
UIColor *textColor       = colors[0];              // or by the index in the file

Colors are returned as UIColor on iOS and as NSColor on OS X.

About

An Objective-C library for handling Adobe Color Swatch files in the ACO format

Resources

License

Stars

Watchers

Forks

Packages

No packages published