I am using Swift 2.2. But as per requirement of Charts library, I need to upgrade Charts to version 3. Should I migrate to Swift version 3 or I can use this library of version 3 in my Swift 2.2.
Asked
Active
Viewed 327 times
2
-
You should migrate to Swift 3. You. Anna mix Swift 2.2 and swift 3 n the same project – Paulw11 Jul 12 '17 at 01:33
-
4Swift 4 is out. Swift 2 is dead. You should migrate to Swift 3 for many reasons. – rmaddy Jul 12 '17 at 01:44
-
i am not taking about mixing about both swift version. Can i use danielgindi/Charts of version 3 in my swift 2.2? – jenny sam Jul 12 '17 at 03:27
-
Charts v3 is written in Swift 3. – Cœur Jul 12 '17 at 03:37
1 Answers
0
Charts v3 is strictly compatible for Swift 3+. (Charts v2 is for Swift 2.3)
And no, you can't mix Swift 2.x and Swift 3.x in the same project. So yes, you should migrate to Swift 3.1 (latest stable).
Note: in the future (Xcode 9), you'll be able to mix Swift 3.2 with Swift 4.0, so it will be easier to transition for this kind of situations.

Cœur
- 37,241
- 25
- 195
- 267
-
i am not taking about mixing about both swift version. Can i use danielgindi/Charts of version 3 in my swift 2.2? – jenny sam Jul 12 '17 at 03:26
-