Browse Source

Fix iOS compilation of eframe (#4851)

Fixed changed the name of function `WinitApp::get_window_winit_id` to
`WinitApp::window_id_from_viewport_id` and missed `egui::ViewportId`
import.
pull/4897/head
Ardocrat 3 months ago
committed by GitHub
parent
commit
dfbc7f0d19
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      crates/eframe/src/native/run.rs

2
crates/eframe/src/native/run.rs

@ -177,7 +177,7 @@ impl<T: WinitApp> WinitAppWrapper<T> {
// WaitUntil seems to not work on iOS
#[cfg(target_os = "ios")]
winit_app
.get_window_winit_id(ViewportId::ROOT)
.window_id_from_viewport_id(egui::ViewportId::ROOT)
.map(|window_id| {
winit_app
.window(window_id)

Loading…
Cancel
Save