Fix initial drawing issue.

This commit is contained in:
Louis D'hauwe 2018-04-02 16:20:23 +02:00
parent fceca65627
commit 791eb679ee

View File

@ -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
}