Error in for loop CGFloat
<p>I converted a project from Swift 2 to Swift 3 and now I get an error in the following line:</p>

<pre><code>for i:CGFloat in 0 ..&lt; 2.0 + self.frame.size.width / ( skyTexture.size().width * 2.0 ) += 1 {
</code></pre>

<p>which says: <code>left side of mutating operator isn't mutable '..&lt;' returns immutable value</code></p>

<pre><code>let skyTexture = SKTexture(imageNamed: "sky")
    skyTexture.filteringMode = .nearest

    let moveSkySprite = SKAction.moveBy(x: -skyTexture.size().width * 2.0, y: 0, duration: TimeInterval(0.1 * skyTexture.size().width * 2.0))
    let resetSkySprite = SKAction.moveBy(x: skyTexture.size().width * 2.0, y: 0, duration: 0.0)
    let moveSkySpritesForever = SKAction.repeatForever(SKAction.sequence([moveSkySprite,resetSkySprite]))

    for i:CGFloat in 0 ..&lt; 2.0 + self.frame.size.width / ( skyTexture.size().width * 2.0 ) += 1 {
        let sprite = SKSpriteNode(texture: skyTexture)
        sprite.setScale(2.0)
        sprite.zPosition = -20
        sprite.position = CGPoint(x: i * sprite.size.width, y: sprite.size.height / 2.0 + groundTexture.size().height * 2.0)
        sprite.run(moveSkySpritesForever)
        moving.addChild(sprite)
    }
</code></pre>