AMColorPicker
can select color by three ways.
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)
Add this to your Podfile.
pod 'AMColorPicker'
Add this to your Cartfile.
github "adventam10/AMColorPicker"
MIT