Swift 2.2 deprecated the C-style loop. However in some cases, the new range operator just doesn\'t work the same.
for var i = 0; i < -1; ++i { ... }
For Swift 3 and need to change the "index"
for var index in stride(from: 0, to: 10, by: 1){}