https://github.com/nsnull0/ywcolorpicker
Simple Color Picker
https://github.com/nsnull0/ywcolorpicker
Last synced: about 2 months ago
JSON representation
Simple Color Picker
- Host: GitHub
- URL: https://github.com/nsnull0/ywcolorpicker
- Owner: nsnull0
- License: mit
- Created: 2017-08-05T10:12:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T10:22:30.000Z (almost 9 years ago)
- Last Synced: 2024-03-23T10:42:00.437Z (over 2 years ago)
- Language: Shell
- Homepage:
- Size: 699 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YWColorPicker
[](https://travis-ci.org/nsnull0/YWColorPicker)
[](https://cocoapods.org/pods/YWColorPicker)
[](https://cocoapods.org/pods/YWColorPicker)
[](https://cocoapods.org/pods/YWColorPicker)
Simple Color Picker
## Availability
#### ⚠️ **This Library only Available to Swift > 3.0** ⚠️
## Screenshot

### CocoaPods Local
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```
```ruby
platform :ios, '9.0'
use_frameworks!
target '' do
pod 'YWColorPicker'
end
```
Then, run the following command:
```bash
$ pod install
```
## Property Setup
```swift
showColorPicker()
showColorPicker(_initial color:UIColor)
```
## Delegation
```swift
func finishSelection(_ color:UIColor)
```
## Example
```swift
var pickerColor:YWColorPicker?
pickerColor = YWColorPicker(parent: self)
pickerColor?.delegate = self
```
## Support
- Updated occasionally for more functionality
- Message me through here http://yoseph.ws for more fast responds
## Credits
- Creator Yoseph Wijaya (Swift 3.0)
- Reference from ios-color-picker (Objective-C)