Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximbilan/swifthuecolorpicker

iOS HUE color picker
https://github.com/maximbilan/swifthuecolorpicker

color hue ios picker pickerview swift ui ui-components ui-design uicolor uikit

Last synced: 3 months ago
JSON representation

iOS HUE color picker

Awesome Lists containing this project

README

        

## SwiftHUEColorPicker

[![Version](https://img.shields.io/cocoapods/v/SwiftHUEColorPicker.svg?style=flat)](http://cocoadocs.org/docsets/SwiftHUEColorPicker)
[![License](https://img.shields.io/cocoapods/l/SwiftHUEColorPicker.svg?style=flat)](http://cocoadocs.org/docsets/SwiftHUEColorPicker)
[![Platform](https://img.shields.io/cocoapods/p/SwiftHUEColorPicker.svg?style=flat)](http://cocoadocs.org/docsets/SwiftHUEColorPicker)
[![CocoaPods](https://img.shields.io/cocoapods/dt/SwiftHUEColorPicker.svg)](https://cocoapods.org/pods/SwiftHUEColorPicker)
[![CocoaPods](https://img.shields.io/cocoapods/dm/SwiftHUEColorPicker.svg)](https://cocoapods.org/pods/SwiftHUEColorPicker)

iOS HUE color picker.
![alt tag](https://raw.github.com/maximbilan/SwiftHUEColorPicker/master/img/img1.png)
## Installation
CocoaPods:


pod 'SwiftHUEColorPicker'

Manual:

Copy SwiftHUEColorPicker.swift to your project.

## Description
Supports two modes: horizontal and vertical.
![alt tag](https://raw.github.com/maximbilan/SwiftHUEColorPicker/master/img/img2.png)
Also, you can change a saturation, a brightness and alpha values.
And control has customization. You can customize the label:
![alt tag](https://raw.github.com/maximbilan/SwiftHUEColorPicker/master/img/img3.png)
Or appearance:

![alt tag](https://raw.github.com/maximbilan/SwiftHUEColorPicker/master/img/img4.png)
## Using
You can create from Storyboard or XIB. Or create manually:


let picker = SwiftHUEColorPicker()

For handling changing of values, you should implement protocol SwiftHUEColorPickerDelegate:


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 example for using SwiftHUEColorPicker in this repository.

## License

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