Latest 2.0
Homepage https://github.com/adventam10/AMColorPicker
License MIT
Platforms ios 9.0, requires ARC
Authors

AMColorPicker

AMColorPicker can select color by three ways.

Demo

colorpicker

wheel

colorpicer_w

table

colorpicer_t

slider

colorpicer_s

Usage

Adopt the AMColorPickerDelegate protocol in the class declaration.

class ViewController: UIViewController, AMColorPickerDelegate

Conform to the protocol in the class implementation.

func colorPicker(_ colorPicker: AMColorPicker, didSelect color: UIColor) {    
    // use selected color here
}

Create and present the AMColorPicker as you see fit.

let colorPickerViewController = AMColorPickerViewController()
colorPickerViewController.selectedColor = UIColor.red
colorPickerViewController.delegate = self
present(colorPickerViewController, animated: true, completion: nil)

Installation

CocoaPods

Add this to your Podfile.

pod 'AMColorPicker'

Carthage

Add this to your Cartfile.

github "adventam10/AMColorPicker"

License

MIT

Latest podspec

{
    "name": "AMColorPicker",
    "version": "2.0",
    "summary": "AMColorPicker can select color by three ways.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/adventam10/AMColorPicker",
    "authors": {
        "am10": "[email protected]"
    },
    "source": {
        "git": "https://github.com/adventam10/AMColorPicker.git",
        "tag": "2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "AMColorPickerViewController/**/*.{swift}",
    "resources": "AMColorPickerViewController/**/*.{xib,png}",
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This