This program is a viewer for .slint files from the Slint project.
Install the binary from crates.io:
cargo install slint-viewerPre-built binaries for Linux and Windows are attached to each release.
slint-viewer path/to/myfile.slintSee the Slint Viewer documentation for live reload, screenshots, command-line options, callback handlers, dialogs, exit codes, and the remote viewer.
On iOS the viewer previews .slint files from your editor on an iPhone, iPad, or the simulator.
- A computer running macOS with an up-to-date installation of Xcode.
- XcodeGen (e.g.
brew install xcodegen). - Rust with the iOS toolchains:
rustup target add aarch64-apple-ios aarch64-apple-ios-sim.
Generate the Xcode project and open it:
cd tools/viewer
xcodegen generate --spec ios-project.yml
open "Slint Viewer.xcodeproj"From Xcode, build and run on the simulator or a device.