I am utilizing PDFKit to render a PDF and I’ve added customized menus utilizing “UIMenuController”. However it’s now deprecated from iOS 16 onwards.
I take away share、loopup menu objects with code under:
@obtainable(iOS 13.0, *)
open override func buildMenu(with builder: UIMenuBuilder) {
builder.take away(menu: .lookup)
builder.take away(menu: .share)
builder.take away(menu: .exchange)
tremendous.buildMenu(with: builder)
}
However the “Spotlight” context menu cannot be eliminated when a consumer lengthy press to pick out textual content in a PDF. There isn’t a method to do away with this menu merchandise ? And learn how to use UIEditMenuInteraction in PDFView ?
Any assist can be actually appreciated.