AMColorPicker

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
Swift

Conform to the protocol in the class implementation.

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

Create and present the AMColorPicker as you see fit.

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

Customization

AMColorPicker can be customized via the following properties.

public var selectedColor: UIColor = .white
public var isCloseButtonShown: Bool = true
public var isSelectedColorShown: Bool = true
Swift
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'
Ogdl

Carthage

Add this to your Cartfile.

github "adventam10/AMColorPicker"
Ogdl

GitHub

AMColorPicker can select color by three ways.Read More

Latest commit to the master branch on 1-13-2020
Download as zip