webView(_:willPerform:for:)
Tells the receiver that the sending web view will perform the specified drag-destination action.
Declaration
optional func webView(_ webView: WebView!, willPerform action: WebDragDestinationAction, for draggingInfo: (any NSDraggingInfo)!)Parameters
- webView:
The web view that sent the message.
- action:
The drag-destination action to perform. See Webdragdestinationaction for a list of actions.
- draggingInfo:
The information object for the dragging operation.
Discussion
This method is invoked after the last invocation of the webView(_:dragDestinationActionMaskFor:) method, when the dragged content is dropped and the sender is about to perform the destination action. No action is taken if you do not implement this method.