Introducing more UI interaction for your app will always make it feel more alive. However it does come at a cost of heavy development work. This is especially the case when it comes to including draggable behavior that also animates views around the screen.
Luckily, UIPanGestureRecognizer is a relatively simple class to use once you are familiar with how touches are recognized. Let's dig into how to keep track of our y value positions so we can get the dragging behavior working perfectly.