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

Commit 7edb614

Browse files
authored
Merge pull request #611 from wordpress-mobile/feature/remove-text-from-back-buttons
Remove text from back buttons
2 parents fab4ba2 + 30118f2 commit 7edb614

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

WordPressAuthenticator.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
2-
s.name = "WordPressAuthenticator"
3-
s.version = "1.41.0-beta.2"
2+
s.name = 'WordPressAuthenticator'
3+
s.version = '1.41.0-beta.3'
44

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

WordPressAuthenticator/Signin/LoginNavigationController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ public class LoginNavigationController: RotationAwareNavigationViewController {
1111
public override func pushViewController(_ viewController: UIViewController, animated: Bool) {
1212
// By default, the back button label uses the previous view's title.
1313
// To override that, reset the label when pushing a new view controller.
14-
self.viewControllers.last?.navigationItem.backBarButtonItem = UIBarButtonItem(title: NSLocalizedString("Back", comment: "Back button title."), style: .plain, target: nil, action: nil)
14+
if #available(iOS 14.0, *) {
15+
self.viewControllers.last?.navigationItem.backButtonDisplayMode = .minimal
16+
} else {
17+
self.viewControllers.last?.navigationItem.backBarButtonItem = UIBarButtonItem(image: UIImage(), style: .plain, target: nil, action: nil)
18+
}
1519

1620
super.pushViewController(viewController, animated: animated)
1721
}

0 commit comments

Comments
 (0)