When pushing from a NavigationController that has a UITabBarController as its child, the tab bar gets hidden. #599
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, I’m not sure why you are embedding a tab bar controller inside a navigation controller, but this is not a recommended scenario, and is not supported by the framework. You will also find many issues inside UIKit with this scenario, but Apple might have fixed some of the issues for SwiftUI. Still not recommended. ScreenRecording_03-29-2025.02-21-38_1.movYou could try to hack your way with overriding some popup bar offsets (I think those are still public API in LNPopupController), but even if you get the bar to correctly appear when a tab bar controller is visible, you will not be able to transition smoothly between states. I suggest you rearchitect your system to correctly use controller containment as intended by UIKit. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply! |
Beta Was this translation helpful? Give feedback.
Looking at your screen diagram, I think you can manage with the tab controller being the root controller. Have the login controller modal, then push your messages, notifications, etc. controllers to the selected tab controller’s navigation controller. Each of those controllers should have
hidesBottomBarWhenPushed=true
, which will hide the tab bar when pushing.