webView(_:contextMenuForElement:willCommitWithAnimator:)
Provides the delegate with the animator object that the web view uses to display the contextual menu.
Declaration
optional func webView(_ webView: WKWebView, contextMenuForElement elementInfo: WKContextMenuElementInfo, willCommitWithAnimator animator: any UIContextMenuInteractionCommitAnimating)Parameters
- webView:
The web view in which the interaction occurred.
- elementInfo:
An object that contains information about the element involved in the interaction.
- animator:
The animator object to use to commit additional animations related to the appearance of the contextual menu.