Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFSafariViewController safariViewControllerDidFinish

Tags:

ios9

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?

like image 956
koen Avatar asked Sep 28 '15 11:09

koen


People also ask

What is Safari View service?

An object that provides a visible standard interface for browsing the web. iOS 9.0+ iPadOS 9.0+ Mac Catalyst 13.1+


1 Answers

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/

like image 154
Code Avatar answered Sep 30 '22 07:09

Code