thebrowsercompany / windows-samples

Sample Apps for Swift on Windows
MIT License
271 stars 15 forks source link

Swift on Windows Samples Apps

Sample apps for Swift on Windows, showcasing how to build Windows Apps using the Windows App SDK through the Swift/WinRT language projection.

Setup

Requirements

  1. Install latest Swift SDK from thebrowsercompany/swift-build
  2. Visual Studio Community with C++ build tools
  3. Make sure to have the appropriate version of the Windows App Runtime installed as mentioned here

VSCode

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:

Building

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

Debugging in VSCode is supported through LLDB. You can simply press F5 or navigate to the Run and Debug (Ctrl+Shift+D) pane.