Latest 0.3.1
Homepage https://github.com/bradkratky/BradColorPicker
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Screenshots

BradColorPicker

Installation

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

pod "BradColorPicker"

Usage

Swift 2: v0.1.0
Swift 3: v0.2.0

Present the BradColorPicker view controller and set it’s delegate. The initial color can also be set:

let picker:BradColorPicker = BradColorPicker(delegate: self); // init with white
//let picker:BradColorPicker = BradColorPicker(delegate: self, r:0.5, g:0, b:0.5, a:1);
//let picker:BradColorPicker = BradColorPicker(delegate: self, color: UIColor.greenColor());
self.presentViewController(picker, animated: true, completion: {});

Implement the delegate, BradColorPickerDelegate:

// MARK: BradColorPickerDelegate
func bradColorPicked(color: UIColor) {
    // use color
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Brad Kratky, [email protected]

License

BradColorPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BradColorPicker",
    "version": "0.3.1",
    "summary": "A Swift color picker using HSV, RGBA, and hex codes.",
    "description": "BradColorPicker is an HSV/RGBA color picker written in Swift.  It allows selection of a color using an HSV palette, RGB sliders or hex code input. The picker is launched using a view controller and closes once the user finishes selection.",
    "homepage": "https://github.com/bradkratky/BradColorPicker",
    "screenshots": "https://raw.githubusercontent.com/bradkratky/BradColorPicker/master/Example/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Brad Kratky": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bradkratky/BradColorPicker.git",
        "tag": "0.3.1"
    },
    "social_media_url": "https://twitter.com/bradkratky",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.0",
    "source_files": "BradColorPicker/Classes/**/*",
    "resources": "BradColorPicker/**/*.xcassets"
}

Pin It on Pinterest

Share This