Swift On Windows – A Native Solution For Learning Swift For Windows Users

There are a number of solutions for learning to program with
Swift on Windows, and one of the easiest is the open source project Swift for
Windows. 

With Swift for Windows you don’t have to worry about using
Docker or Ubuntu for Windows, and the solution is completely free.

Swift for Windows provides the compiler, a nice interface so you don’t have to worry about changing any paths or using the command line directly and provides support for Swift 4 (currently 4.1.3) and the Foundation classes.

Swift For Windows Interface

You can find Swift for Windows here.

Now as far as IDE’s go there’s the free Microsoft Visual Studio Code which provides a nice lightweight solution.  The vscode-swift-syntax extension can be used for improved code highlighting.

Improved Swift Code Syntax Highlighting Extension

You can download Microsoft Visual Studio Code here.

One caveat you might run into when using Swift for Windows is a conflict with another current Mingw, you can find the solution to this issue here.

That solution is to simply rename the file “x86_64-w64-mingw32-gcc.bat” to “x86_64-w64-mingw32-gcc” found in \mingw64\bin.

While this is certainly not a complete solution for Swift
development (no iOS, Mac support, not all classes available) it can be a quick
way to get started if you are interested in learning the Swift programming
syntax.

Original article: Swift On Windows – A Native Solution For Learning Swift For Windows Users

©2019 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *