Skip to content

Commit

Permalink
#584 Flickering navigation bar when going back to LoginPrologueViewCo…
Browse files Browse the repository at this point in the history
…ntroller with interactive gesture
  • Loading branch information
pmieszal committed Mar 31, 2021
1 parent eaa6b03 commit fb21415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class LoginPrologueViewController: LoginViewController {
super.viewWillAppear(animated)

configureButtonVC()
navigationController?.setNavigationBarHidden(true, animated: false)
navigationController?.setNavigationBarHidden(true, animated: animated)
}

override func viewDidAppear(_ animated: Bool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ final class SiteAddressViewController: LoginViewController {

siteURLField?.text = loginFields.siteAddress
configureSubmitButton(animating: false)

// Nav bar could be hidden from the host app, so reshow it.
navigationController?.setNavigationBarHidden(false, animated: animated)
}

override func viewDidAppear(_ animated: Bool) {
Expand Down Expand Up @@ -232,9 +235,6 @@ private extension SiteAddressViewController {
func configureNavBar() {
navigationItem.title = WordPressAuthenticator.shared.displayStrings.logInTitle
styleNavigationBar(forUnified: true)

// Nav bar could be hidden from the host app, so reshow it.
navigationController?.setNavigationBarHidden(false, animated: false)
}

func setupTable() {
Expand Down

0 comments on commit fb21415

Please sign in to comment.