mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-08-05 03:27:24 +00:00
handle opening documents in UIScene app lifecycle (fixes #64)
This commit is contained in:
@@ -61,4 +61,10 @@ class DefaultSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||||||
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
|
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
|
||||||
AppDelegate.shared.application(UIApplication.shared, performActionFor: shortcutItem, completionHandler: completionHandler)
|
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: [:])
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user