I have a WKWebView that sets the UIDelegate:
self.webView.UIDelegate = self;
The following methods are never called when I right click in the WKWebView to being up a context menu:
-(void)webView:(WKWebView*)webView
contextMenuForElement:(WKContextMenuElementInfo*)elementInfo
willCommitWithAnimator:(id <UIContextMenuInteractionCommitAnimating>)animator
-(void)webView:(WKWebView*)webView
contextMenuConfigurationForElement:(WKContextMenuElementInfo*)elementInfo
completionHandler:(void (^)(UIContextMenuConfiguration * _Nullable configuration))completionHandler
- (void)webView:(WKWebView *)webView contextMenuDidEndForElement:(WKContextMenuElementInfo *)elementInfo;
This is from a Mac Catalyst app (I'm on macOS 14.0 23A344)