I am doing a simple pushViewController(controller, animated: true)
on my view controller on iPad:
I am starting on ViewController A
. I want to push viewController B
on a button tap.
I have a func buttonTapped( { rootViewController.pushViewController(controller, animated: true)
that is getting called properly on button tap.
When this push gets called, the screen does indeed push in a new controller, but for a couple of frames (maybe 1-2 seconds max), I can see part of viewController A
"embedded behind" viewController B
, before A
fully disappears.
Why is this happening? On iPhone it does not have this issue.
Thanks!