/AMColorPicker

AMColorPicker can select color by three ways.

Primary LanguageSwiftMIT LicenseMIT

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