2019-04-14 20:45:19 +03:00
|
|
|
<p align="center">
|
|
|
|
<img src=".github/Logo.png" width="480" max-width="90%" alt="ChromaColorPicker 2.0" />
|
|
|
|
</p>
|
2016-08-11 23:42:06 +03:00
|
|
|
|
2019-04-14 20:45:19 +03:00
|
|
|
<p align="center">
|
|
|
|
<img src="https://img.shields.io/badge/Swift-5.0-orange.svg" />
|
|
|
|
<img src="https://img.shields.io/badge/platform-iOS-lightgray.svg" />
|
|
|
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg" />
|
|
|
|
<img src="https://img.shields.io/badge/pod-1.7.1-green.svg" />
|
|
|
|
<img src="https://img.shields.io/badge/Carthage-compatible-green.svg" />
|
|
|
|
<img src="https://travis-ci.com/joncardasis/ChromaColorPicker.svg?branch=develop" />
|
|
|
|
</p>
|
2016-08-11 23:42:06 +03:00
|
|
|
|
2019-04-14 20:45:19 +03:00
|
|
|
An intuitive HSB color picker built in Swift. Supports multiple selection handles and is customizable to your needs.
|
2017-07-26 00:41:26 +03:00
|
|
|
|
2019-04-14 20:45:19 +03:00
|
|
|
> TODO: Image / GIF
|
2016-08-11 23:42:06 +03:00
|
|
|
|
|
|
|
## Installation
|
2017-07-24 23:32:12 +03:00
|
|
|
### Carthage
|
|
|
|
```
|
|
|
|
github "joncardasis/ChromaColorPicker"
|
|
|
|
```
|
|
|
|
|
2016-08-11 23:42:06 +03:00
|
|
|
### Cocoapods
|
|
|
|
```
|
2016-08-15 19:55:11 +03:00
|
|
|
pod 'ChromaColorPicker'
|
2016-08-11 23:42:06 +03:00
|
|
|
```
|
|
|
|
### Manually
|
2019-04-14 20:45:19 +03:00
|
|
|
Add all files from the `Source` folder to your project.
|
2016-08-11 23:42:06 +03:00
|
|
|
|
2016-08-15 20:52:39 +03:00
|
|
|
## Examples
|
2016-08-11 23:42:06 +03:00
|
|
|
```Swift
|
2016-09-09 22:33:24 +03:00
|
|
|
```
|
|
|
|
|
2017-07-26 00:31:34 +03:00
|
|
|
|
2019-04-14 20:45:19 +03:00
|
|
|
### Supported UIControlEvents
|
|
|
|
| Event | Description |
|
|
|
|
| :-----------------:|:-------------|
|
|
|
|
| `.touchDown` | Called when a handle is first grabbed. |
|
|
|
|
| `.touchUpInside` | Called when a handle is let go. |
|
|
|
|
| `.valueChanged` | Called whenever the color has changed. |
|
|
|
|
| `.touchDragInside` | Called when a handle has moved via a drag action. |
|
|
|
|
| `.editingDidEnd` | Called when either a handle is let go or slider is let go. |
|
|
|
|
|
|
|
|
##### Example
|
2017-07-26 00:31:34 +03:00
|
|
|
```Swift
|
|
|
|
```
|
|
|
|
|
2016-08-11 23:42:06 +03:00
|
|
|
## License
|
2016-08-15 19:55:11 +03:00
|
|
|
ChromaColorPicker is available under the MIT license. See the LICENSE file for more info.
|