mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-26 05:14:11 +00:00
.. | ||
node | ||
rust | ||
ui | ||
README.md |
Home Automation Demo
A fictional Home Automation User Interface.
.slint Design |
Rust Source | C++ Source | Node Source | Online wasm Preview | Open in SlintPad |
---|---|---|---|---|---|
ui.slint |
main.rs |
main.js |
Online simulation | Preview in Online Code Editor |
Building and running on iOS
This demo can be cross-compiled to iOS to run on iPhones, iPads, and the respective simulators.
Prerequisites
- A computer running macOS.
- An up-to-date installation of Xcode.
- Xcodegen
- Rust. Add the target and simulator toolchains using
rustup target add aarch64-apple-ios
andrustup target add aarch64-apple-ios-sim
Building
- Run
xcodegen -s ios-project.yml
to generate an XCode project file (.xcodeproj
). - Open XCode and open the generated
.xcodeproj
in it. - Run, deploy, and debug the demo from within Xcode.