SFSafariViewControllerPresenting
public protocol SFSafariViewControllerPresenting : AnyObject
This protocol represents an API which is capable of presenting a SFSafariViewController.
-
The presenter delegate.
Declaration
Swift
var delegate: WebViewPresenterDelegate? { get set } -
Presents the web view and passes the instance in the completion handler.
Declaration
Swift
func presentWebView(with url: URL, completionHandler: @escaping (SFSafariViewController?, Error?) -> Void)Parameters
withThe initial url which will be loaded in the web view. Can not change later.
-
Dismisses the presented web view.
Declaration
Swift
func dismissWebView()