mirror of
https://github.com/ilyakooo0/huekit.git
synced 2024-11-25 06:34:32 +03:00
ColorSquarePicker: add color API.
This commit is contained in:
parent
e23fdf8e50
commit
fceca65627
@ -49,11 +49,15 @@ public class ColorSquarePicker: UIControl {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public var color: UIColor {
|
||||
return UIColor(hue: hue, saturation: value.x, brightness: value.y, alpha: 1.0)
|
||||
}
|
||||
|
||||
private func setIndicatorColor() {
|
||||
|
||||
colorSquareView.hue = hue
|
||||
indicator.color = UIColor(hue: hue, saturation: value.x, brightness: value.y, alpha: 1.0)
|
||||
indicator.color = color
|
||||
}
|
||||
|
||||
public override func layoutSubviews() {
|
||||
|
Loading…
Reference in New Issue
Block a user