Post

Replies

Boosts

Views

Activity

Reply to Safe Area unaware of hidden tab bar
I'm not sure if my answer is relevant, as 5 years left since lat post update... But I'm facing the same issue in 2023. Found the solution works for me. Just add this to the view controller you are going to push. private var originalEdgesForExtendedLayout: UIRectEdge = [] override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.originalEdgesForExtendedLayout = self.edgesForExtendedLayout self.edgesForExtendedLayout.insert(.bottom) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) self.edgesForExtendedLayout = self.originalEdgesForExtendedLayout } And don't forget to set hidesBottomBarWhenPushed to true right before the push called: viewControllerToPush.hidesBottomBarWhenPushed = true self.navigationController?.pushViewController(viewControllerToPush, animated: true)
May ’23