Swipe down to navigate back gesture & animation

Can someone offer advice on how to create a swipe-down-to-navigate-back gesture & animation? Such that you could navigate from a top view, to the previous view in the stack?

It sounds simple enough but I can’t figure out the approach for adding custom navigation animations, and controlling those using specific gesture.