Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maximbilan/swifthuecolorpicker
- Owner: maximbilan
- License: mit
- Created: 2015-05-06T07:39:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T08:26:03.000Z (over 6 years ago)
- Last Synced: 2024-10-31T15:44:41.685Z (3 months ago)
- Topics: color, hue, ios, picker, pickerview, swift, ui, ui-components, ui-design, uicolor, uikit
- Language: Swift
- Homepage:
- Size: 277 KB
- Stars: 46
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 = selffunc valuePicked(color: UIColor, type: SwiftHUEColorPicker.PickerType) {
}Direction:
picker.direction = SwiftHUEColorPicker.PickerDirection.Vertical // Vertical, HorizontalType:
picker.type = SwiftHUEColorPicker.PickerType.Color // Color, Saturation, Brightness, AlphaPlease see example for using SwiftHUEColorPicker in this repository.
## License
SwiftHUEColorPicker is available under the MIT license. See the LICENSE file for more info.