Method resetTopViewAnimated: is passed as an action method in tap gesture recognizer. This method has parameter of type BOOL. But action method must take UIGestureRecognizer as an argument.
This causes gesture recognizer object be casted to boolean, so result of this casting may cause to animated parameter be NO, because of specifics of such cast https://www.mikeash.com/pyblog/friday-qa-2012-12-14-objective-c-pitfalls.html (casting to bool section). So it breaks animation after tap gesture recognizer method fire to close side view controller.
This bug is not usually visible because default animation controller does not handle isAnimated method of transitionContext.
Activity