Skip to content

maximbilan/SwiftHUEColorPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

146 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftHUEColorPicker

Version License Platform

iOS HUE color picker.

HUE color picker

Installation

CocoaPods:

pod 'SwiftHUEColorPicker'

Manual:

Copy SwiftHUEColorPicker.swift to your project.

Description

Supports two modes: horizontal and vertical.

Horizontal and vertical modes

You can also change the saturation, brightness and alpha values.

The control is customizable. You can customize the label:

Custom label

Or the appearance:

Custom appearance

Using

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, Horizontal

Type:

picker.type = SwiftHUEColorPicker.PickerType.Color // Color, Saturation, Brightness, Alpha

Please see the example in this repository for how to use SwiftHUEColorPicker.

License

SwiftHUEColorPicker is available under the MIT license. See the LICENSE file for more info.

About

🎨 A customizable HUE color picker control for iOS in Swift — horizontal & vertical modes, hue/saturation/brightness/alpha selection, and Storyboard, XIB or code setup.

Topics

Resources

License

Stars

44 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors