From 91966c8dd95b98335e63ac060dafe9dc616642aa Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:53:06 -0500 Subject: [PATCH 1/2] Add example of how to do File Dialogs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1c7ac9a022f..6a13a7fb424 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,10 @@ If you call `.await` in your GUI code, the UI will freeze, which is very bad UX. * [`eventuals::Eventual`](https://docs.rs/eventuals/latest/eventuals/struct.Eventual.html) * [`tokio::sync::watch::channel`](https://docs.rs/tokio/latest/tokio/sync/watch/fn.channel.html) +### How to do cross platfrom file dialogs? + +The async version of [rfd](https://docs.rs/rfd/latest/rfd/) supports both native and WASM. See example app here https://github.com/woelper/egui_pick_file which also has a demo available via [gitub pages](https://woelper.github.io/egui_pick_file/). + ### What about accessibility, such as screen readers? egui includes optional support for [AccessKit](https://accesskit.dev/), which currently implements the native accessibility APIs on Windows and macOS. This feature is enabled by default in eframe. For platforms that AccessKit doesn't yet support, including web, there is an experimental built-in screen reader; in [the web demo](https://www.egui.rs/#demo) you can enable it in the "Backend" tab. From 9cb5e2c4b1b71d272a57e698be4d853dfd5b823f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 22 Jan 2024 11:14:36 +0100 Subject: [PATCH 2/2] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a13a7fb424..0ff209dda7a 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ If you call `.await` in your GUI code, the UI will freeze, which is very bad UX. * [`eventuals::Eventual`](https://docs.rs/eventuals/latest/eventuals/struct.Eventual.html) * [`tokio::sync::watch::channel`](https://docs.rs/tokio/latest/tokio/sync/watch/fn.channel.html) -### How to do cross platfrom file dialogs? +### How to do cross-platform file dialogs? The async version of [rfd](https://docs.rs/rfd/latest/rfd/) supports both native and WASM. See example app here https://github.com/woelper/egui_pick_file which also has a demo available via [gitub pages](https://woelper.github.io/egui_pick_file/).