Instance Method

webView(_:commitPreviewingViewController:)

Called when the user performs a pop action on the preview.

Declaration

optional func webView(_ webView: WKWebView, commitPreviewingViewController previewingViewController: UIViewController)

Parameters

webView

The web view invoking the delegate method.

previewingViewController

The view controller that is popped.

Discussion

You must display the previewed view controller inside of your app.

See Also

Responding to Force Touch Actions