mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-27 10:26:12 +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-iosandrustup target add aarch64-apple-ios-sim
Building
- Run
xcodegen -s ios-project.ymlto generate an XCode project file (.xcodeproj). - Open XCode and open the generated
.xcodeprojin it. - Run, deploy, and debug the demo from within Xcode.