widgetUrl to Main App Question

Hey All I have a question about the widget url to deep link or goto a specific view in my main app once the widget is tapped. Is this URL passed in the App Delegate ? Then i control which viewcontroller to goto ? Im a little confused , I currently have a ObjC App, and the widget itself is working great , im just curious how the "hand off" between the widget and the main app works. Im new to the URL portion.

And ideas or sample (even pseudo) code would be great !
this is from apple engineer,

Great,

What family (size) widget are you using?
> I tried all 3 sizes (small, medium, large)
Note that Link will only work in systemMedium and systemLarge, for deep linking from a systemSmall widget, you'll need to use widgetURL: https://developer.apple.com/documentation/swiftui/view/widgeturl(_:)

Does your app already support deep links?
> Yes. I can trigger the deep link from terminal (xcrun simctl ---) Are you using a SwiftUI App, or a UIApplicationDelegate?
> For the main app, we are using UIApplicationDelegate.
When your widget gets tapped your app should be passed the URL, if you support scenes your scene delegate should get a scene(:openURLContexts:) call, otherwise your application delegate should get a application(:open:options:) call.

Here
widgetUrl to Main App Question
 
 
Q