Sample apps for Swift on Windows, showcasing how to build Windows Apps using the Windows App SDK through the Swift/WinRT language projection.
- Install latest Swift SDK from thebrowsercompany/swift-build
- Visual Studio Community with C++ build tools
- Make sure to have the appropriate version of the Windows App Runtime installed as mentioned here
VSCode is the editor of choice for developing Windows apps on Swift. You can install it from https://code.visualstudio.com/download.
If you choose to use Visual Studio Code, you'll need to install these extensions:
The build of the Windows applications is done through SPM. This can be done on the command line with swift build
or in Visual Studio Code with Ctrl+Shift+B
.
Debugging in VSCode is supported through LLDB. You can simply press F5
or navigate to the Run and Debug
(Ctrl+Shift+D
) pane.