Earlier this week Ole Begemann wrote a really great tutorial on how UIScrollView
s work, and to explain it effectively, he even created a really simple scroll view, written from scratch.
The setup was quite simple: Use a UIPanGestureRecognizer
, and change the bounds
’ origin
in response to translation of the pan gesture.
Extending Ole’s custom scroll view to incorporate UIScrollView
’s inertial scrolling seemed like a natural extension, and with Facebook’s recent release of Pop, I thought it writing a decelerating custom scroll view would be an interesting weekend project.