Simple notifications library for egui
use egui_notify::Toasts;
use std::time::Duration;
// initialize once
let mut toasts = Toasts::default();// somewhere within [egui::App::update]...
toasts.info("Hello world!").duration(Duration::from_secs(5));
// ...
toasts.show(ctx);cargo add egui-notify[dependencies]
egui-notify = "0.17.0"Difference to egui-toast
- Animations for appearing/disappearing toasts
- Duration meter for expiring toasts
- Toast positioning not influenced by which
Contextyou pass to it (like if for example, you passed in aContextalready altered for anegui::Window) - Differing methodology (create
Toastsinstance once, save save somewhere in application state) - Threadsafe
Toastsinstance, implementsSend,Sync. - No support for custom toasts

