I'm trying to use a loop like this:
for var i : CGFloat = 0; i<3 ; i+=1 {
// code
}
xcode tells me that this C-style statement is deprecated and will be removed in the future. This is just a warning, not an error. So i try to fix this using the following loop:
for i : CGFloat in 0 ..< 3 {
//code
}
but i get this error : "Binary operator '..<' cannot be applied to two 'Int' operands"
Does anyone know how to fix this ?
Julien