# `bevy_iced`: use [Iced](https://github.com/iced-rs/iced) UI programs in your [Bevy](https://github.com/bevyengine/bevy/) application
[](https://crates.io/crates/bevy_iced)
[](./LICENSE)
## Example
```rust
use bevy::prelude::*;
use bevy_iced::iced::widget::text;
use bevy_iced::{IcedContext, IcedPlugin};
pub enum UiMessage {}
pub fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(IcedPlugin)
.add_event::<UiMessage>()
.add_system(ui_system)
.run();
}
fn ui_system(time: Res<Time>, mut ctx: IcedContext<UiMessage>) {
ctx.display(text(format!(
"Hello Iced! Running for {:.2} seconds.",
time.elapsed_seconds()
)));
}
```
See the [examples](https://github.com/tasgon/bevy_iced/tree/master/examples) and the [documentation](https://docs.rs/bevy_iced) for more details on how to use the crate.
## Compatibility
|`0.10` |`0.3`, `master`|
|`0.9` |`0.2` |
|`0.7` |`0.1` |
## Todo
- Multi-window support
- Clipboard support
## Credits
- [`bevy_egui`](https://github.com/mvlabat/bevy_egui) for giving me a useful starting point to do this