I am working on an application that can push ViewControllers automatically by its own regarding some data I receive from websocket. The fact is when you press a button that also makes a push/pop viewController at the same time, it results in a corrupted navigation hierarchy and the app crashes :
nested push animation can result in corrupted navigation bar Unbalanced calls to begin/end appearance transitions for <**********ViewControlleriPhone: 0x16fb1990>.
So I am looking for a method in navigation controller (something like isPushingViewController ?) to know if I can make a push or not. I tried : IsBeingDismissed, IsBeingPresented with topViewController, or visibleViewController ... I cannot know if the navigation receive a push or not.
Could you help me fixing that please :) ?