handle opening documents in UIScene app lifecycle (fixes #64)

This commit is contained in:
Jesús A. Álvarez 2025-02-17 11:37:02 +01:00
parent d55d95fc29
commit 7ca7a9129a

View File

@ -61,4 +61,10 @@ class DefaultSceneDelegate: UIResponder, UIWindowSceneDelegate {
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
AppDelegate.shared.application(UIApplication.shared, performActionFor: shortcutItem, completionHandler: completionHandler)
}
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
for ctx in URLContexts {
AppDelegate.shared.application(UIApplication.shared, open: ctx.url, options: [:])
}
}
}