Skip to content

Commit 38c4bfb

Browse files
author
Alexey Naumov
committed
Handle deeplink on the cold launch
1 parent 80ac448 commit 38c4bfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CountriesSwiftUI/System/SceneDelegate.swift

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
2727
window.makeKeyAndVisible()
2828
}
2929
self.systemEventsHandler = environment.systemEventsHandler
30+
if !connectionOptions.urlContexts.isEmpty {
31+
systemEventsHandler?.sceneOpenURLContexts(connectionOptions.urlContexts)
32+
}
3033
}
3134

3235
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {

0 commit comments

Comments
 (0)