Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

regexident/DLColorPicker

Repository files navigation

DLColorPicker No Maintenance Intended

DLColorPicker is both, a loose collection of UIControls

  • DLCPHexPicker
  • DLCPHuePicker
  • DLCPBrightnessPicker
  • DLCPAlphaPicker
  • DLCPSaturationBrightnessPicker
  • DLCPHueSaturationPicker

…and a pair of pre-configured UIViewControllers:

  • DLCPGradientColorPickerController (as seen on the left in the preview)
  • DLCPWaterfallColorPickerController (as seen on the right in the preview)

While the picker controls work best when used with one of the above UIViewControllers,
each control can be used on its very own. Don't want a hex picker? No problem: Just don't add it to your view then. Same for alpha, etc.

Preview

screenshot

Features

  • Six picker controls to choose from.
  • Two picker controllers to choose from.
  • Uses CAGradientLayer for drawing
  • No image resources, no slow custom drawing.
  • Animates on color change.
  • Custom layout (frames, sizes, positions, etc)
  • Custom appearance (borders, shadows, etc.)

Installation

Just copy the files in "DLColorPicker/Classes/..." into your project.

(I don't use CocoaPod myself, but am very open for pull requests for a pod!)

Demos

DLColorPicker contains a demo app giving you a quick overview of both included controllers.

ARC

DLColorPicker uses automatic reference counting (ARC).

Dependencies

None.

Creator

Vincent Esche (@regexident)

License

DLColorPicker is available under a modified BSD-3 clause license with the additional requirement of attribution. See the LICENSE file for more info.

About

Modular color picker for iOS that uses no image resources for rendering

Resources

License

Stars

Watchers

Forks

Packages

No packages published