29 lines
974 B
Markdown
29 lines
974 B
Markdown
## Tour
|
|
|
|
A simple UI tour that can run both on native platforms and the web! It showcases different widgets that can be built using Iced.
|
|
|
|
The __[`main`]__ file contains all the code of the example! All the cross-platform GUI is defined in terms of __state__, __messages__, __update logic__ and __view logic__.
|
|
|
|
<div align="center">
|
|
<a href="https://gfycat.com/politeadorableiberianmole">
|
|
<img src="https://thumbs.gfycat.com/PoliteAdorableIberianmole-small.gif">
|
|
</a>
|
|
</div>
|
|
|
|
[`main`]: src/main.rs
|
|
[`iced_winit`]: ../../winit
|
|
[`iced_native`]: ../../native
|
|
[`iced_wgpu`]: ../../wgpu
|
|
[`iced_web`]: ../../web
|
|
[`winit`]: https://github.com/rust-windowing/winit
|
|
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
|
|
|
You can run the native version with `cargo run`:
|
|
```
|
|
cargo run --package tour
|
|
```
|
|
|
|
The web version can be run by following [the usage instructions of `iced_web`] or by accessing [iced.rs](https://iced.rs/)!
|
|
|
|
[the usage instructions of `iced_web`]: ../../web#usage
|