Can I use libraries written in the old version of swift in a project with a newer version of swift?

I am working on a project in Swift 3. However, many libraries still use Swift 2.3.

Is there a way to use them in my project the way they are?

Since you can use Objective-C libraries in Swift, I think there is a chance.

+4
source share
1 answer

Perhaps this link from Apple answers the question:

unfortunately this would seem impossible:

First of all, Swift 2.3 and Swift 3 are not compatible with binary versions, so your whole code base should choose one version of Swift.

https://developer.apple.com/swift/blog/?id=36

+6
source

Source: https://habr.com/ru/post/1657422/


All Articles