AMColorPicker 3.0.1

AMColorPicker 3.0.1

Maintained by am10.



  • By
  • am10

AMColorPicker

Pod Platform Pod License Pod Version Carthage Compatible

AMColorPicker can select color by three ways.

Demo

colorpicker

Wheel Table Slider
wheel table slider

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 = .red
colorPickerViewController.delegate = self
present(colorPickerViewController, animated: true, completion: nil)

Customization

AMColorPicker can be customized via the following properties.

public var selectedColor: UIColor = .white
public var isCloseButtonShown: Bool = true
public var isSelectedColorShown: Bool = true

Modal

Wheel Table Slider
modal_w modal_t modal_s

Push

Wheel Table Slider
push_w push_t push_s

Popover

Min height is 380.

Wheel Table Slider
pop_w pop_t pop_s

Dark Mode

Wheel Table Slider
dark_w dark_t dark_s

Installation

CocoaPods

Add this to your Podfile.

pod 'AMColorPicker'

Carthage

Add this to your Cartfile.

github "adventam10/AMColorPicker"

License

MIT