Swift Language Bindings for common WinRT APIs and the Windows App SDK. For now, this package hosts bindings for WinUI 3, the Windows App SDK, UWP, Windows Foundation, and WebView 2 Core.
The bindings are generated using thebrowsercompany/swift-winrt. To discover which bindings each product provides bindings for, see the projections.json file in the corresponding subdirectory of the Support directory.
These bindings target a specific Windows SDK and a specific Windows App SDK. Bindings for the Windows SDK are compatible with all Windows SDK versions that follow. Bindings for Windows App SDK APIs on the other hand require that a matching Windows App Runtime version is installed.
- Windows SDK:
10.0.17763.0 - Windows App SDK:
1.5-preview1
To compile an app that uses swift-winui, you must install a matching version of the Windows SDK;
winget install --id Microsoft.WindowsSDK.10.0.17763To run an app that uses swift-winui, you must install the correct version of the Windows App Runtime;