Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit ea26e3f

Browse files
committed
Fix an issue where the Login navigation bar disappears during a pop animation
1 parent 161ae9d commit ea26e3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WordPressAuthenticator/Signin/LoginPrologueViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LoginPrologueViewController: LoginViewController {
7373
super.viewWillAppear(animated)
7474

7575
configureButtonVC()
76-
navigationController?.setNavigationBarHidden(true, animated: false)
76+
navigationController?.setNavigationBarHidden(true, animated: animated)
7777
}
7878

7979
override func viewDidAppear(_ animated: Bool) {

WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ final class SiteAddressViewController: LoginViewController {
6868

6969
siteURLField?.text = loginFields.siteAddress
7070
configureSubmitButton()
71+
72+
// Nav bar could be hidden from the host app, so reshow it.
73+
navigationController?.setNavigationBarHidden(false, animated: animated)
7174
}
7275

7376
override func viewDidAppear(_ animated: Bool) {
@@ -254,9 +257,6 @@ private extension SiteAddressViewController {
254257
func configureNavBar() {
255258
navigationItem.title = WordPressAuthenticator.shared.displayStrings.logInTitle
256259
styleNavigationBar(forUnified: true)
257-
258-
// Nav bar could be hidden from the host app, so reshow it.
259-
navigationController?.setNavigationBarHidden(false, animated: false)
260260
}
261261

262262
func setupTable() {

0 commit comments

Comments
 (0)