<!--
{
  "documentType" : "article",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/wkuidelegate-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review unsupported symbols and their replacements.

## Topics

### Responding to Force Touch actions

[`func webView(WKWebView, shouldPreviewElement: WKPreviewElementInfo) -> Bool`](/documentation/WebKit/WKUIDelegate/webView(_:shouldPreviewElement:))

Determines whether the given element should show a preview.

[`func webView(WKWebView, previewingViewControllerForElement: WKPreviewElementInfo, defaultActions: [any WKPreviewActionItem]) -> UIViewController?`](/documentation/WebKit/WKUIDelegate/webView(_:previewingViewControllerForElement:defaultActions:))

Called when the user performs a peek action.

[`func webView(WKWebView, commitPreviewingViewController: UIViewController)`](/documentation/WebKit/WKUIDelegate/webView(_:commitPreviewingViewController:))

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)