mirror of
https://github.com/ilyakooo0/huekit.git
synced 2024-11-28 21:22:09 +03:00
Fix initial drawing issue.
This commit is contained in:
parent
fceca65627
commit
791eb679ee
@ -16,8 +16,8 @@ class ColorSquareView: UIImageView {
|
||||
@IBInspectable
|
||||
var hue: CGFloat = 0.0 {
|
||||
didSet {
|
||||
|
||||
if abs(drawnHue - hue) <= 1e-10 {
|
||||
|
||||
if self.image != nil && abs(drawnHue - hue) <= 1e-10 {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user