In Swift, I have 2 navigation bars but want to hide one of them, how to do it?
<p>I currently have a viewcontroller that has two navigation bars because Its has a navigation controller both before and after a tab bar controller.  I tried to have it so that the viewcontroller before the tab bar controller will present modally but by dong so the 2nd nav bar didn't work properly. The 2nd nav bar is a custom side menu that only appears to work if the first navigation controller is preset. Here is a pic</p>

<p><a href="https://i.stack.imgur.com/kb6Sa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kb6Sa.png" alt="viewcontroller"></a></p>

<p>Is there a way so that only the bottom nav controller is visible?</p>