I was loading a URL using SFSafariViewController in my app and also implemented the SFSafariViewControllerDelegate. I noticed that when I am running my app on iOS, I am not getting the callBack in safariViewControllerDidFinish(_:) until or unless "Done" button is pressed. But when I am running it on MacCatalyst following behaviour is noticed:
- default browser is launched.
- I get a callback in safariViewControllerDidFinish(_:) without any of my action(like pressing "Done" button).
Is this the expected behaviour? I am curious to know why I am getting callback in safariViewControllerDidFinish(_:).