|
@@ -178,7 +178,7 @@ pub enum RunEvent {
|
|
|
/// This event is useful as a place to put your code that should be run after all state-changing events have been handled and you want to do stuff (updating state, performing calculations, etc) that happens as the “main body” of your event loop.
|
|
|
MainEventsCleared,
|
|
|
/// Emitted when the user wants to open the specified resource with the app.
|
|
|
- #[cfg(target_os = "macos")]
|
|
|
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
|
|
|
Opened {
|
|
|
/// The URL of the resources that is being open.
|
|
|
urls: Vec<url::Url>,
|
|
@@ -1523,7 +1523,7 @@ fn on_event_loop_event<R: Runtime, F: FnMut(&AppHandle<R>, RunEvent) + 'static>(
|
|
|
RuntimeRunEvent::Resumed => RunEvent::Resumed,
|
|
|
RuntimeRunEvent::MainEventsCleared => RunEvent::MainEventsCleared,
|
|
|
RuntimeRunEvent::UserEvent(t) => t.into(),
|
|
|
- #[cfg(target_os = "macos")]
|
|
|
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
|
|
|
RuntimeRunEvent::Opened { urls } => RunEvent::Opened { urls },
|
|
|
_ => unimplemented!(),
|
|
|
};
|