Skip to content

Commit 87be413

Browse files
committed
Use transparent navigation bar helper.
1 parent 7142d88 commit 87be413

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

WooCommerce/Classes/Authentication/Store Creation/Profiler/Category/StoreCreationCategoryQuestionView.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@ final class StoreCreationCategoryQuestionHostingController: UIHostingController<
1414
override func viewDidLoad() {
1515
super.viewDidLoad()
1616

17-
configureNavigationBarAppearance()
18-
}
19-
20-
/// Shows a transparent navigation bar without a bottom border and with a close button to dismiss.
21-
func configureNavigationBarAppearance() {
22-
let appearance = UINavigationBarAppearance()
23-
appearance.configureWithTransparentBackground()
24-
appearance.backgroundColor = .systemBackground
25-
26-
navigationItem.standardAppearance = appearance
27-
navigationItem.scrollEdgeAppearance = appearance
28-
navigationItem.compactAppearance = appearance
17+
configureTransparentNavigationBar()
2918
}
3019
}
3120

0 commit comments

Comments
 (0)