for people come across this in the future, swiftui has newly implemented approach for receiving url from universal links(or, deep links)
@main
struct SwiftUIAppLifeCycleApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL { url in
print("Received URL: \(url)")
}
}
}
}
something like this.
https://peterfriese.dev/posts/ultimate-guide-to-swiftui2-application-lifecycle/
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: