UIColor-BetterEquality 0.1.5

UIColor-BetterEquality 0.1.5

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Daniel Blakemore.



  • By
  • Daniel Blakemore

Usage

Changes the behavior of isEqual on UIColor to better capture useful equality.

Performs a component-wise comparison of colors for equality. This allows for the comparison of colors that are saved to disk (via NSKeyedArchiver for example) and loaded again. The float serialization is imprecise so this bins them with the precision of 1/255 for each channel.

Installation

UIColor-BetterEquality is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "UIColor-BetterEquality"

Author

Daniel Blakemore, [email protected]

License

UIColor-BetterEquality is available under the MIT license. See the LICENSE file for more info.