Post

Replies

Boosts

Views

Activity

Using UIEditMenuInteraction instead of UIMenuController.shared.menuItems
I don't really understand what they explained on how to add an item to the menu with a function (who does the function returns the UIMenu to?, where do I get the Range or the suggestedActions from?), perhaps because I'm using SwiftUI. Right now I'm using: UIMenuController.shared.menuItems = [UIMenuItem(title: "Search" , action: #selector(webView.search))] to add an item to the context menu of my WKWebView. what is the equivalent of that with UIEditMenuInteraction?
0
3
1k
Aug ’22