I have a widget that opens my app via a custom url scheme (myapp:some-deep-link
). In my app I have a handler setup like so:
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL(perform: { url in
//my code
}
}
}
In iOS 14 this works perfectly, in iOS 15 (Simulator) onOpenURL
is not called at all. The app launches, but there is no call. I am wondering if this might be a simulator problem or a bug or something I am doing wrong. Any ideas?