Skip to content

A NSFormatter subclass that can format instances of UIColor or NSColor to their textual representation

License

Notifications You must be signed in to change notification settings

klaaspieter/KPAColorFormatter

Repository files navigation

Introduction

A NSFormatter subclass that maps UIColor or NSColor instances to meaningful names

Installation

Add the following to your Podfile:

pod "KPAColorConvenience"

Usage

Use like any other NSFormatter. stringForObjectValue: maps colors to names and getObjectValue:forString:errorDescription: does the reverse.

Credits

The default color names were taken from http://chir.ag/projects/ntc/

About

A NSFormatter subclass that can format instances of UIColor or NSColor to their textual representation

Resources

License

Stars

Watchers

Forks

Packages

No packages published