Today one of our testers showed me that if he presses the back button of a navigation bar while swiping back creates a quite interesting behavior of the navigation bar:
if we are on the third view controller and perform this than go back to the top, than again go in one level and click the back button on most cases the navigation bar will not disappear if it should, or it maybe will not animate. Or not appear in deeper levels. Or deactivate the back button although not being in the top view controller.
Sometimes this messages is printed to the console:
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
It turns out that it must be in Apples classes, as I was able to reproduce it with plain classes. The code is on GitHub. You will have to run the app on the phone to perform gesture and button tap at once.
I also prepared a video.
How do I fix it?