Skip to content

Commit 4a6e377

Browse files
committed
fix: removed Ghost "Hub Menu" label that appears in the tab bar after navigating back to the Menu tab on iOS 14
1 parent 5524af8 commit 4a6e377

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

WooCommerce/Classes/ViewRelated/Hub Menu/HubMenuViewController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ final class HubMenuViewController: UIHostingController<HubMenu> {
77

88
init(siteID: Int64, navigationController: UINavigationController?) {
99
super.init(rootView: HubMenu(siteID: siteID, navigationController: navigationController))
10-
configureNavigationBar()
1110
configureTabBarItem()
1211
}
1312

@@ -23,10 +22,6 @@ final class HubMenuViewController: UIHostingController<HubMenu> {
2322
}
2423

2524
private extension HubMenuViewController {
26-
func configureNavigationBar() {
27-
navigationItem.title = Localization.navigationBarTitle
28-
}
29-
3025
func configureTabBarItem() {
3126
tabBarItem.title = Localization.tabTitle
3227
tabBarItem.image = .hubMenu
@@ -37,8 +32,5 @@ private extension HubMenuViewController {
3732
private extension HubMenuViewController {
3833
enum Localization {
3934
static let tabTitle = NSLocalizedString("Menu", comment: "Title of the Menu tab")
40-
static let navigationBarTitle =
41-
NSLocalizedString("Hub Menu",
42-
comment: "Navigation bar title of hub menu view")
4335
}
4436
}

0 commit comments

Comments
 (0)