I\'m trying to create a for loop but can\'t seem to understand how to get rid of this error
My code:
for i:CGFloat in 0 ..< 2 + self.frame.size.wi
You have to convert the right side of the range to an integer type, like Int or UInt:
Int
UInt
for i in 0 ..< Int(2 + self.frame.size.width / (movingGroundTexture.size().width)) { ... }