Binary operator '..<' cannot be applied to two 'Int' operands [Swift]
<p>I was programming in my Xcode project and suddenly I got a warning that this:</p>

<pre><code> for var i:CGFloat = 0; i&lt;3; i++ 
</code></pre>

<p>"will be removed in Swift 3." It gave me an option to "fix" the code to Swift 3 syntax and switched it to this:</p>

<pre><code>for i:CGFloat in 0 ..&lt; 3 {
</code></pre>

<p>Now my code will not run and the error it gets "Binary operator '.&lt;' cannot be applied to two '<code>Int</code>' operands.</p>