ColorCircle
is a control for color selection.
- iOS 9.0+
- Swift 4.1+
To integrate ColorCircle
into your project using Carthage, specify it in your Cartfile
:
github "valery-bashkatov/ColorCircle" ~> 3.0.0
And then follow the instructions to install the framework and its dependencies.
API Reference is located at http://valery-bashkatov.github.io/ColorCircle.
import ColorCircle
let colorCircle = ColorCircle()
colorCircle.frame = CGRect(x: 100, y: 100, width: 200, height: 200)
colorCircle.addTarget(self, action: #selector(changeColor), for: .valueChanged)
view.addSubview(colorCircle)
func changeColor() {
print(colorCircle.color)
}