How to hide tab bar when push in iOS

Issue #471

1
2
let navigationController = UINavigationController(rootViewController: viewControllerA)
navigationController.pushViewController(viewControllerB, animated: true)

In view controller B, need to set hidesBottomBarWhenPushed in init

1
2
3
4
5
6
7
8
9
10
11
12
13
14
final class ViewControllerB: UIViewController {
let mainView = EditPaymentMethodView()
var scenario: PaymentMethodScenario!

init() {
super.init(nibName: nil, bundle: nil)

hidesBottomBarWhenPushed = true
}

required init?(coder: NSCoder) {
fatalError()
}
}

Comments