Skip to content

Commit

Permalink
gh-662 Should fix navigation bar showing when switching tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Bespalov committed Nov 19, 2020
1 parent e3d76b3 commit 4c71fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -47,12 +47,12 @@ final class HeaderViewController: ContainerViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
navigationController?.setNavigationBarHidden(true, animated: animated)
navigationController?.navigationBar.isHidden = true
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
navigationController?.setNavigationBarHidden(false, animated: animated)
navigationController?.navigationBar.isHidden = false
}

@IBAction private func didTapSwitchSafe(_ sender: Any) {
Expand Down
Expand Up @@ -33,8 +33,5 @@ class TransactionListTableViewCell: UITableViewCell {
controller = vc

vc.didMove(toParent: parent)

// somehow adding hosting controller auto-shows the navigation bar
parent.navigationController?.navigationBar.isHidden = true
}
}

0 comments on commit 4c71fd8

Please sign in to comment.