mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-04-18 07:37:03 +00:00
handle opening documents in UIScene app lifecycle (fixes #64)
This commit is contained in:
parent
d55d95fc29
commit
7ca7a9129a
@ -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: [:])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user