Discern between UINavigation bar back button, and interactive pop swipe to go back?

I need to discern between the two methods of going back in iOS – tapping the back button in a navigation bar, and using the screen-edge pan to do so. I’d rather not implement a custom back button if possible.