SwiftCrossUI implements a simple API similar but not identical to SwiftUI, allowing you to use the basic concepts of SwiftUI to create a cross-platform desktop app. SwiftCrossUI is designed to be flexible and can work with different backends, but has a focus on using GTK+ through SwiftGTK. Create cross-platform desktop apps for macOS, Linux and Windows. Work has been started to support multiple different backends. Switching backends only requires changing a single line of code! Currently there's the Gtk 4 backend, as well as an experimental AppKit backend (AppKitBackend, macOS-only). All examples use GtkBackend for maximum compatibility, but you can update them manually to try out the various available backends. Work is being done to allow the backend used by the examples to be changed from the command line.
Features
- Documentation available
- Examples available
- Running examples on other backends
- Install Gtk 4 and Clang
- The wide variety of views available that you can combine to create complex UIs
- Objects that are read from and/or written to as part of your app