Since the ios13 update, overriding the PDFView
class’s method
canPerformAction(_ action: Selector, withSender sender: Any?)
no longer detects or controls the "look up", "share" and "forward" menu items and I can't figure out a way to disable them.
Previously overriding it in this manner blocked all menu items:
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
return false
}
However this only blocks cut, copy, paste from ios13. Has anyone figured this out? If so I would very much appreciate your help!