I have UIScrollview that the user scrolls up and down.
Is there a way to adjust how much the user's drag of the finger results in the final scroll amount?
I was looking at UIScrollview delegate methods, but haven't found a place to alter that.
scrollViewDidScroll(_:) seems too late since this is AFTER the event.
iOS users are very familiar with using scrolling views, so changing the "scroll speed" may be confusing. However, it's your app :)
Give this a try...
When the user Begins dragging, we'll grab the
.contentOffset.yas a "starting point." InscrollViewDidScroll, we'll get the difference between the new.contentOffset.yand thestartingY... multiply that by the speed factor ... and then change the.contentOffset.y.Note that manually setting
.contentOffset.ytriggersscrollViewDidScroll, so we'll also need to set a bool flag to prevent recursion: