                     
                     iv.center = CGPointMake(CGFloat(i) * distance + halfWidth * CGFloat(i - 1),
                         self.frame.size.height/2)
-                    i++
+                    i += 1
                 }
         }
     }

            return
        }
        
        for var i = 1; i <= starCount; i++ {
            let iv = UIImageView(image: offImage)
            addSubview(iv)
            stars.append(iv)

        }
        
        layoutStars()

        if onImage == nil {
            onImage = UIImage(named: "starryStars_on", inBundle: bundle, compatibleWithTraitCollection: self.traitCollection)
        }
        
        if halfImage == nil {
            halfImage = UIImage(named: "starryStars_half", inBundle: bundle, compatibleWithTraitCollection: self.traitCollection)
        }
