You can use the onOpenURL(perform:) view modifier. https://developer.apple.com/documentation/swiftui/outlinesubgroupchildren/onopenurl(perform:)
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL { (url) in
								// Handle url here
						}
		}
}