OpenSwiftUI is an open source implementation of Apple's SwiftUI
The project is for the following purposes:
- Build GUI app on non-Apple platform (eg. Linux & Windows)
- Diagnose and debug SwiftUI issues on Apple platform
And the API design is to stay the same as the original SwiftUI API as possible.
Currently, this project is in early development.
You can find the API documentation here.
Warning
This package use a lot of hidden API and private framework on Apple platform.
Please DO NOT use this package in Apple's production environment(eg. App Store).
Otherwize it may break your build or crash your app at any future SDK/OS update.
See Example folder and try it with ExampleApp
Important
Clone OpenGraph in the same directory before running the example.
See Example/README.md for more detail.
./Scripts/build
./Scripts/openswiftui_swiftinterface
The table below describes the current level of support that OpenSwiftUI
has
for various platforms:
Platform | CI Status | Support Status | Build | Test | Deploy |
---|---|---|---|---|---|
SwiftUI Compatibility | |||||
macOS | ⭐️⭐️⭐️ *1 | ✅ | ✅ | ✅ | |
iOS | ⭐️⭐️⭐️⭐️ *2 | ✅ | ✅ | ✅ | |
Ubuntu 22.04 | ⭐️⭐️ *3 | ✅ | ✅ | ❌ | |
Wasm | ⭐️ *4 | ✅ | ❌ | ❌ | |
Windows | None | Not supported yet | ❌ | ❌ | ❌ |
Note
The cross-platform OpenGraph is not fully implemented.
It is only API compatible with AttributeGraph now.
So most of the core feature is only available on Apple platform built with AttributeGraph varient.
See LICENSE file - MIT