How can we use UIEditMenuInteraction in WkWebViewUITextView to customize menu and add more buttons?
Before iOS 16 I was using:
UIMenuController.shared.menuItems = [menuItem1, menuItem2, menuItem3]
in
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {...}
Thank you
I had the same problem and it took quite a while to find a solution. But, I found I could override buildMenu in MyTextView: UITextView. Here is my code to add a Strikethrough to the menu in iOS 16 and 15
toggleStrikethrough is a new func I created and added to Selector
Hope this helps.