-1

I have a question here.

If I am going to create a application for IOS 8 and newer, should I be using Swift 3 or 2? I do have xCode 8 installed, but not quite sure what Swift version I should be using. The application will be some kind of social media, using UICollectionView.

Roduck Nickes
  • 1,021
  • 2
  • 14
  • 41

3 Answers3

1

Use Swift 3, Apple will retire swift 2.*.

thus to be future prove use swift 3.

rckoenes
  • 68,719
  • 8
  • 132
  • 164
  • Thank you for your answer. I will accept it, but just another quick question: If I use `Deplotment Target: IOS 8` and a cocoapods pack has been updated for IOS 10, can I still use the newest version, or do I have to install the latest IOS 8 one? – Roduck Nickes Nov 16 '16 at 09:31
  • Yes, you will need to build the app with the iOS 10 SDK but you keep your deployment target on 8. – rckoenes Nov 16 '16 at 09:32
  • 1
    Quick comment - you will only be future proof for another 10-12 months. Then Swift 4 will be in place. :-) Not meaning to be snarky, just pointing out to all that - for now - any Swift coder needs to understand the version cycle, which is very much unlike Objective-C. (And while Swift 3 > 4 migration shouldn't be nearly as painful, it will eventually need to be done.) –  Nov 16 '16 at 12:07
0

Use Swift 3.0, In this version they removed extra code we required to write in swift 2.

In this they simplified all the syntax and structure.(easy to write codes)

Sagar Snehi
  • 398
  • 3
  • 13
0

When you are creating the new app in Xcode 8, the default language is swift3. My suggestion is you can go with swift 3, in future the apple may forcibly suggest you to convert the swift 2 code to swift 3, it will be very complex to convert entire project at that time. Then apple will always encourage modern technology, i.e SWIFT 3

Karthick Selvaraj
  • 2,229
  • 16
  • 28