Latest 0.1.5
Homepage https://github.com/pixio/UIColor-BetterEquality
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

Version
License
Platform

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.

Latest podspec

{
    "name": "UIColor-BetterEquality",
    "version": "0.1.5",
    "summary": "Changes the behavior of isEqual on UIColor to better capture useful equality.",
    "description": "Performs a component-wise comparison of colors for equality.nnThis 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.",
    "homepage": "https://github.com/pixio/UIColor-BetterEquality",
    "license": "MIT",
    "authors": {
        "Daniel Blakemore": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pixio/UIColor-BetterEquality.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "*.{h,m}",
    "public_header_files": "*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This