mirror of
https://github.com/ilyakooo0/huekit.git
synced 2024-11-25 06:34:32 +03:00
Fix initial drawing issue.
This commit is contained in:
parent
fceca65627
commit
791eb679ee
@ -17,7 +17,7 @@ class ColorSquareView: UIImageView {
|
||||
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