Reputation: 21
I'm using swift
script in my terminal and it shows
Welcome to Swift version 1.2. Type :help for assistance.
Is it the right way to show Swift's version?
And how to update Swift's version to 2.0?
Upvotes: 2
Views: 6161
Reputation: 6790
You can get Swift 2.0 by installing Xcode 7.
You can get Swift 3.0 by installing Xcode 8.
You can get Swift 4.0 by installing Xcode 9.
You can get more information here: https://developer.apple.com/xcode/
Upvotes: 1