I am working on UIMenuController in WKWebView. My requirement is like open UIMenucontroller from UIMenucontroller.
Below is the scenario steps.
First wkwebview is launch in my application.
Then I select text from that webiview.
After selecting text in webview multiple options are visible in menuContorller like copy, copyWithReferencd and my custom menu options etc...
From that menuController I clicked on one of the menu item.
Now I have to open another menuController having different options.
In my case menuController open properly but placement of menuController is not proper. Also I don't have rect where to display 2nd menuController.
So, I am stuck that how to open 2nd menuController at proper place.
I tried all properties in UIMenuController but it didn't worked for me.
I made menuController nil after selecting first menu action. Then also not worked.
Expected result:
- Second menucontroller should open at proper place with proper arrow direction.