JHColorPicker – iOS Color Picker Control

JHColorPicker has been released as a cocoapod: https://github.com/jhays/JHColorPicker

Installation

JHColorPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JHColorPicker"

 

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

  let colorPickerController = JHColorPickerController()
  colorPickerController.delegate = self
  colorPickerController.previousColor = self.view.backgroundColor
  colorPickerController.completion = { selectedColor in
    self.view.backgroundColor = selectedColor
  }
  self.presentViewController(UINavigationController(rootViewController: colorPickerController), animated: true, completion: nil)

You may also like...

Leave a Reply