Instance Method

webView:commitPreviewingViewController:

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

Declaration

- (void)webView:(WKWebView *)webView commitPreviewingViewController:(UIViewController *)previewingViewController;

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

- webView:shouldPreviewElement:

Determines whether the given element should show a preview.

Deprecated
- webView:previewingViewControllerForElement:defaultActions:

Called when the user performs a peek action.

Deprecated