dzenbot / XCSwiftr

An Xcode Plugin to convert Objective-C to Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Old "C-style" for-loop

lfarah opened this issue · comments

screen shot 2016-04-11 at 7 19 23 pm

In Swift 3.0, C-style for-loops will be deprecated, so instead of this:
// Generated by XCSwiftr
for var i = 1; i <= 10; i++ {
    print("\(i)")
}

It should be the swift-style for-loop:

for i in 0...10 {
     print("\(i)")
}

Fork, correct and submit a pull request?

@gingofthesouth the problem is that this lib is powered by objc2swift, so I don't think there's anything to fix in this project

@lfarah that is why you should open an issue on that project https://github.com/yahoojapan/objc2swift/issues/new or attempt for better 3.0 support