deltachat-ios icon indicating copy to clipboard operation
deltachat-ios copied to clipboard

Second Attempt at "Long Press to ask user to copy link" / Link-"context menu"

Open Simon-Laux opened this issue 1 year ago • 0 comments

  • detect long tap on link (I finally found out how to do it 🎉 )
  • add an action sheet

This still is a draft with probably rather bad code, but it already works.

  • only works on iOS 13+ but I think thats ok
  • [ ] I don't really like my time-based-workaround against false triggers of the normal tap handler.
  • [ ] A. Would be cool to also use the ios context menu instead of the action sheet, but there is no real link element, it's just part of the UILabel, so probably complicated to make it look good
  • [ ] B. or as an alternative to A we could also copy the design of the "copy link sheet" from whatsapp, it seems to be similar to the safari tab switcher or our account switcher.
  • [ ] The jumping around of the message list when the sheet opens is not nice to look at

Optional:

  • [ ] add small haptic feedback when opening the action sheet, that would already be included with A.
  • [ ] Add a option to copy to phone numbers, maybe also a "create phone contact" action

Disclaimer: This is just me playing around because I want this feature (https://support.delta.chat/t/copy-a-link-from-a-message-on-long-press-in-ios/2755). It is not currently a project priority.

Simon-Laux avatar Apr 17 '24 19:04 Simon-Laux