I have two viewControllers, vcA
and vcB
.
vcA
is the initial view controller and it's embedded in a navigation controller, navVC
. To display vcB
I push vcB
with navVC
.
However, for vcA
I don't want to display the navigation bar and for vcB
I do want to display the navigation bar.
I've seen this answer but it doesn't solve my problem because I need to support backswipe. When I try to cause the navigation controller to disappear on backswipe the navigation controller immediately disappears or slowly disappears depending on if animation is enabled.
My navVC
is presenting with a page sheet animation as well so if I set the nav bar to disappear in viewWillDisappear
it disappears as I modally pan down.
Is there a way to specify to not have a navigation bar shown on the first vc and have it shown on the second? Or is there some better way to do this I'm not familiar with?