Looking for a way to make it easy for users to copy text from a text input field to the clipboard on iOS/Safari. While there is no direct way to do this programmatically on this platform, I'm hoping to enhance the user experience as much as possible.
On iOS/Safari, when a user manually selects text, a Copy menu appears. I was wondering if it's possible to trigger the same menu when the text is selected programmatically, but unfortunately, it doesn't work that way. Is there a workaround for achieving this?
If not, any suggestions on how to create a user-friendly solution for copying text to the clipboard on iOS/Safari?
For more details on selecting text programmatically, check out this question: Programmatically selecting text in an input field on iOS devices (mobile Safari)