Swift developers can now build apps for Windows using their language of choice.
In a blog post, Swift Core team member Saleem Abdulrasool announced the release of Swift toolchain images for Windows.
The toolchains contain various components required for building and running Swift code on Microsoft’s operating system.
Apparently, it’s taken over a year’s worth of work to port Swift to Windows.
“Porting Swift to Windows is not about simply porting the compiler, but rather ensuring that the full ecosystem is available on the platform. This includes the compiler, the standard library, and the core libraries (dispatch, Foundation, XCTest),” wrote Abdulrasool.
“These libraries are part of what enables developers to write powerful applications with ease and without having to worry about many of the details of the underlying system.”
A talk from Abdulrasool which goes into the technical details of what was involved in porting Swift to Windows can be viewed below:
A basic calculator app was built using Swift and Visual Studio 2019 to demonstrate the toolkit. CMake was used for developing the app but Abdulrasool says that Swift Package Manager support is coming along and It will soon be possible to get the application building using swift build
One early adopter is Readdle, a company which develops the Spark email app. The company is currently working on building a cross-platform version of its popular email client and says it’s going well.
Apple made Swift open source back in 2015. “By making Swift open source the entire developer community can contribute to the programming language and help bring it to even more platforms,” said Craig Federighi, Apple’s senior vice president of Software Engineering at the time.
Abdulrasool says this release of Swift for Windows is just the start of a journey but that it’s the first milestone where the language can be considered usable.
You can download the Swift toolchain for Windows 10 here.
Interested in hearing industry leaders discuss subjects like this? Attend the co-located 5G Expo, IoT Tech Expo, Blockchain Expo, AI & Big Data Expo, and Cyber Security & Cloud Expo World Series with upcoming events in Silicon Valley, London, and Amsterdam.