Swift/Win32 aims to provide a MVC model for writing applications on Windows. It provides Swift friendly wrapping of the Win32 APIs much like MFC did for C++.
- Swift 5.3 or newer
- Windows SDK 10.0.107763 or newer
- CMake 3.16 or newer
This requires the latest Swift snapshot. You can use the the snapshot binaries from swift.org or download the nightly build from Azure.
The following example session shows how to build with CMake 3.16 or newer.
cmake -B build -D BUILD_SHARED_LIBS=YES -D CMAKE_BUILD_TYPE=Release -D CMAKE_Swift_FLAGS="-sdk %SDKROOT%" -G Ninja -S .
ninja -C build SwiftWin32 UICatalog
%CD%\build\bin\UICatalog.exe