slint/demos/home-automation/README.md
Simon Hausmann d37ee60155 Add iOS build of the Energy Monitor and Home Automation demos
Use xcodegen -s ios-project.yml to generate the Xcode project.
2025-05-20 11:07:19 +02:00

1.5 KiB

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

Screenshot of the Home Automation Demo

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 and rustup target add aarch64-apple-ios-sim

Building

  1. Run xcodegen -s ios-project.yml to generate an XCode project file (.xcodeproj).
  2. Open XCode and open the generated .xcodeproj in it.
  3. Run, deploy, and debug the demo from within Xcode.