MarqueeLabel icon indicating copy to clipboard operation
MarqueeLabel copied to clipboard

Suggestion: draggable text

Open Leverin opened this issue 11 years ago • 1 comments

Thanks a ton for this lib! I've implemented it in a project I'm working on and it works great.

What, in my opinion, would make it even more user friendly is if he/she would be able to manually scroll the text left/right within the label by dragging the text.

What do you think?

Leverin avatar Sep 09 '14 14:09 Leverin

Definitely a good idea! I had this in mind as well, although I haven't gotten around to doing it. With the way v2.0 of MarqueeLabel is built, this should be a lot easier.

If you'd like to take a stab at it, check out David Ronnqvist's article on Controlling Animation Timing - in particular his section on the pull-to-refresh implementation. I'd imagine the way to do this with MarqueeLabel would be to hook into the CAAnimation driving the scroll and manipulate it in a similar fashion, probably in response to a pan gesture recognizer.

I'll mark this as an Improvement/Feature Request, but feel free to give it a shot and submit a pull request!

cbpowell avatar Sep 18 '14 14:09 cbpowell