Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Highlight" editing action doing nothing in the PDF Navigator #365

Open
mickael-menu opened this issue Nov 24, 2023 · 0 comments
Open

"Highlight" editing action doing nothing in the PDF Navigator #365

mickael-menu opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mickael-menu
Copy link
Member

Since iOS 16, Apple's PDFView adds a Highlight editing action in the text selection menu, which apparently does nothing.
Unfortunately I could not find a way to disable it, after trying:

  • Overriding canPerformAction() to return false.
    • I did it in PDFDocumentView but also used method swizzling to do it in all the subviews of PDFView, every time layoutSubviews() is called.
  • Overriding buildMenu(), but couldn't find a menu item identifier matching Highlight, I tried all of them.

Other people are having the same issue: https://developer.apple.com/forums/thread/725339

@mickael-menu mickael-menu added bug Something isn't working help wanted Extra attention is needed labels Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant