I'm confused about the use of the SFSafariViewController
delegate method safariViewControllerDidFinish:
. The docs and tutorials say I need to use this to close my view when the user selects 'Done'. But it works (closing the view) just fine without implementing the delegate method.
Am I missing something, do I need to implement it anyway?
An object that provides a visible standard interface for browsing the web. iOS 9.0+ iPadOS 9.0+ Mac Catalyst 13.1+
No need to implement it.
When Done is tapped in a SFSafariViewController, it is automatically dismissed. You no longer need to dismiss it in the delegate method safariViewControllerDidFinish:.
https://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-9.0/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With