MacOS – Getting Latest Version of Swift

macosswift

I’m starting to learn Swift, and have tried the Swift shell. I notice that it is Apple Swift version 5.1.3 . I though it was up to 5.2 by now.

How do I get the latest version of Swift on my MacOS? Is that affected by the XCode version?

I am running MacOS Catalina 10.15.6 and XCode 11.7.

Best Answer

Latest Swift comes with Xcode 11.5 which should run on Catalina. So go to the app store and download the latest version of Xcode.