iOS HUE color picker.
CocoaPods:
pod 'SwiftHUEColorPicker'Manual:
Copy SwiftHUEColorPicker.swift to your project.
Supports two modes: horizontal and vertical.
You can also change the saturation, brightness and alpha values.
The control is customizable. You can customize the label:
Or the appearance:
You can create it from a Storyboard or XIB, or create it manually:
let picker = SwiftHUEColorPicker()To handle value changes, implement the SwiftHUEColorPickerDelegate protocol:
picker.delegate = self
func valuePicked(color: UIColor, type: SwiftHUEColorPicker.PickerType) {
}Direction:
picker.direction = SwiftHUEColorPicker.PickerDirection.Vertical // Vertical, HorizontalType:
picker.type = SwiftHUEColorPicker.PickerType.Color // Color, Saturation, Brightness, AlphaPlease see the example in this repository for how to use SwiftHUEColorPicker.
SwiftHUEColorPicker is available under the MIT license. See the LICENSE file for more info.



