TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by James Kauten.
This pod relies on:
which will be installed with this pod.
BColorPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BColorPicker"
To run the example project, clone the repo, and run pod install
from the Example directory first. The example project can then be executed on a simulator or a production device.
To use a BColorPicker in your project it’s as easy as inserting this one line in the view controller on which you want to display the popup:
let _ = BColorPicker.show(on: self, handledBy: nil)
This function returns an instance of BColorPicker in case you might want to manipulate some of the controller manually.
The reccomended way of handling color change is to implement a handler function in the host view controller like this:
func HandleColorDidChange(color: UIColor?)
{
// handle color change in host view controller
}
see ViewController for a production example of how this might come together
Kautenja, [email protected]
BColorPicker is available under the MIT license. See the LICENSE file for more info.