Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thebrowsercompany/windows-samples
Sample Apps for Swift on Windows
https://github.com/thebrowsercompany/windows-samples
Last synced: 13 days ago
JSON representation
Sample Apps for Swift on Windows
- Host: GitHub
- URL: https://github.com/thebrowsercompany/windows-samples
- Owner: thebrowsercompany
- License: mit
- Created: 2023-10-20T03:49:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-20T17:14:29.000Z (9 months ago)
- Last Synced: 2024-07-05T10:44:27.184Z (4 months ago)
- Language: Swift
- Size: 33.2 KB
- Stars: 236
- Watchers: 13
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift on Windows Samples Apps
Sample apps for Swift on Windows, showcasing how to build Windows Apps using the [Windows App SDK](https://github.com/microsoft/windowsappsdk) through the [Swift/WinRT](https://github.com/thebrowsercompany/swift-winrt) language projection.
## Setup
### Requirements
1. Install latest Swift SDK from [thebrowsercompany/swift-build](https://github.com/thebrowsercompany/swift-build/releases)
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](https://github.com/thebrowsercompany/swift-windowsappsdk?tab=readme-ov-file#using-windows-app-sdk)
### VSCodeVSCode 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:
- [Swift VSCode Extension](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang)## 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.