TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Laszlo Pinter.
This is a highly customizable color picker view written in Swift.
This is a working product but still an ongoing project with enhancement and refactor ideas. You can find a list at the bottom of this page. Please feel free to contribute or star the project if you like it.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate CircleColorPicker into your Xcode project using CocoaPods, specify it in your Podfile
:
platform :ios, '11.0'
use_frameworks!
target 'WiledMoods' do
pod 'CircleColorPicker', '~> 1.0.0'
end
Then, run the following command:
$ pod install
Add a UIView to one of your ViewControllers on interface builder and set it's class to CircleColorPickerView. Alternatively you can instantiate and add it programmatically.
These values have both getters and setters:
This means that you can make animations faster or slower as you prefer.
You can also change the images of the bubbles using:
colorPickerView.setupMaskImages(image: bubbleImage)
where bubbleImage should be the UIImage of your choice.
To get notified when the user selects a new color on the picker implement the:
func onColorChanged(newColor: CGColor)
function of the CircleColorPickerViewDelegate
interface and set the delegate of your CircleColorPickerView.
Thanks for using CircleColorPicker. If you have an app that is using this library and want it listed here just drop a message.