Reputation: 1209
I have a few issues concerning the recent addition of Swift 2.0 and upcoming iOS9.
Currently I have been working on an app that works with iOS7 or above, and using Swift 1.2 things...nothing that Swift 2 has. I was told that I should start updating everything to include Swift 2 rather than the older ways of using Swift. So my questions are...
1) If I do begin to work with Swift 2 code, will iOS 7 and iOS 8 be able to recognize that code, or does Swift 2 only work with certain versions of iOS?
2) If I choose NOT to work with the Swift 2 code and stick with what I have that works already for iOS 7 and 8, is it possible that in iOS9 or later, it won't work because it expects Swift 2 and it's not getting it?
I have looked for compatibility articles and answers online and found nothing. The only thing I've learned is that Swift 2 just adds code, and doesn't necessarily change anything...so maybe just keeping my old code would be okay. But again I'm not exactly sure. Thanks.
Upvotes: 2
Views: 425
Reputation: 5258
The code will work as far back as iOS 7 for right now, regardless of what version of Swift you are using. As far as whether you should update your code, that's up to you, but of course Swift 2.0 does offer a lot more in terms of safety and error checking so if you find situations where it would be pertinent to implement such new features, then you probably should. Also some syntax is different, but if you update now you'll just be future-proofing yourself.
Upvotes: 2