Go to https://swift.org/download/#snapshots and upload the pictures of your choice (these are toolchains). After setting as, a Xcode -> Toolchains -> Manage Toolchains...new submenu will appear.
Clicking Manage Toolchains...will open Xcode -> Preferences -> Components -> Toolchains. You can choose the Swift Toolchain.
Hooray!
source
share