WKWebView doesn't show edit menu for pdf documents.

I've noticed that edit menu with Copy, Look Up, Translate options doesn't appear when I select some text in pdf file loaded in WKWebView. This issue is reproducible on the latest iOS 16 and 17 beta versions.

Additionally, these two WKUIDelegate methods are called for all types of documents except PDFs.

func webView(_ webView: WKWebView, willPresentEditMenuWithAnimator animator: UIEditMenuInteractionAnimating)

func webView(_ webView: WKWebView, willDismissEditMenuWithAnimator animator: UIEditMenuInteractionAnimating)

Is this a bug or is there a new WebKit/PDFKit API I could use to enable this menu?

Feedback ID: FB12759407

WKWebView doesn't show edit menu for pdf documents.
 
 
Q