CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2018 |
SwiftSwift Version | 3.1 |
SPMSupports SPM | ✗ |
Maintained by Vladimir Dinic.
WDColorPicker is a simple lightweight component for displaying color picker inside iOS apps.
Download example project and add WDColorPickerView folder inside your project
//Example of usage
import UIKit
import WDColorPicker //If you are using CocoaPods
class InterfaceColorPickerViewController: UIViewController, WDColorPickerViewDelegate
{
@IBOutlet weak var colorPicker: WDColorPickerView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
self.colorPicker.delegate = self
}
func colorChanged(colorPicker: WDColorPickerView, color: UIColor) {
self.view.backgroundColor = color
}
}
//Example of usage
import UIKit
import WDColorPicker //If you are using CocoaPods
class PopUpColorPickerViewController: UIViewController, WDColorPickerViewDelegate
{
@IBOutlet weak var colorButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
@IBAction func shwColorPicker(_ sender: Any) {
WDColorPickerView.showPicker(delegate: self, initialColor: self.colorButton.backgroundColor)
}
func colorSelected(colorPicker: WDColorPickerView, color: UIColor) {
self.colorButton.backgroundColor = color
}
}
Documentation is still in preparation and the code will be updated regularly
If you find any bug, please report it, and I will try to fix it ASAP.