tools/viewer/README.md
This program is a viewer for .slint files from the Slint project.
Install the binary from crates.io:
cargo install slint-viewer
Pre-built binaries for Linux and Windows are attached to each release.
slint-viewer path/to/myfile.slint
See 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.
brew install xcodegen).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.