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

Commit c18fbfd

Browse files
authored
Merge pull request #687 from wordpress-mobile/fix/prologue-nav-bar
Login navigation bar disappears during a pop transition
2 parents 161ae9d + 9bee712 commit c18fbfd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressAuthenticator'
5-
s.version = '3.2.1'
5+
s.version = '3.2.2-beta.1'
66

77
s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.'
88
s.description = <<-DESC

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)