In my view controller, I am checking for isMovingToParent inside viewWillAppear so that I can execute some logic only when the view controller is first displayed and not when a later view controller is popped off the stack to reveal my original one.
I would expect this value to be true when the VC is first pushed onto the navigation stack and false when it appears because of a later VC popping off the stack.
However, in both cases, the value ends up being true. Any reason why this would be happening?