hyperoslo / Lightbox

:milky_way: A convenient and easy to use image viewer for your iOS app
https://www.hyper.no
Other
1.63k stars 329 forks source link

Add long press to LightboxControllerTouchDelegate #256

Open jmschonfeld opened 4 years ago

jmschonfeld commented 4 years ago

The current LightboxControllerTouchDelegate allows me to listen for single taps on an image. However, a common gesture on images is a long press (press and hold) to do things like sharing/downloading the image. Is there a way with the current state of the library that I can add a delegate for this or add my own long press gesture recognizer to the image views?

3lvis commented 4 years ago

Hi @jmschonfeld, this should be doable, there are two caveats, tho.

1.- This will introduce a slight delay for single touches seeing as iOS will wait to see if an additional action is presented, this might make tapping feel slower than usual. We could add this on demand tho and only apply it when it's requested.

2.- We don't have anyone working actively on this project anymore, if this is something you want to add yourself I'll be happy to assist.