I converted a project from Swift 2 to Swift 3 and now I get an error in the following line:
for i:CGFloat in 0 ..< 2.0 + self.frame.size.width / ( skyText
In essence what you want is still a loop through integer values incremented by 1. So you can just calculate the last int value and use a simple for each loop:
for i in 0..