I'm trying to create some sort of timeline view like in video editors: media elements in a row, which are UIView
's. I can successfully drag these views inside currently visible part of scroll view using UIScrollView
touch events like touchesBegan
and touchesMoved
. I want to scroll the scroll view once subview is dragged to one of the scroll view edges. The best I can think of now is to create a timer that will scroll the view while user holds the subview with the finger near scroll view edge.
There's a lot of questions here on the same topic, but I was unable to find one that covers scrolling.
Is there a good way to do this? Should I use gesture recognizers instead?
Thank you in advance.