diff options
author | Marino Faggiana <marino@marinofaggiana.com> | 2022-09-23 17:14:04 +0300 |
---|---|---|
committer | Marino Faggiana <marino@marinofaggiana.com> | 2022-09-23 17:14:04 +0300 |
commit | cdc935491848df79656e98c7683156c934b44150 (patch) | |
tree | d73959c8eeb5ca1261f2ede1e0e734e9521e56f3 | |
parent | 6e9dcd96514b573bcbe84ad4ff30cf92dc7daaf5 (diff) |
improved UINavigationBarAppearance
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r-- | iOSClient/Main/NCMainNavigationController.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iOSClient/Main/NCMainNavigationController.swift b/iOSClient/Main/NCMainNavigationController.swift index f113311a6..c859b0816 100644 --- a/iOSClient/Main/NCMainNavigationController.swift +++ b/iOSClient/Main/NCMainNavigationController.swift @@ -33,15 +33,15 @@ class NCMainNavigationController: UINavigationController { navigationBar.tintColor = .systemBlue let standardAppearance = UINavigationBarAppearance() + standardAppearance.configureWithDefaultBackground() - standardAppearance.configureWithOpaqueBackground() standardAppearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label] - standardAppearance.configureWithOpaqueBackground() standardAppearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label] - standardAppearance.backgroundColor = .systemGroupedBackground + standardAppearance.backgroundColor = NCBrandColor.shared.defaultNavigationBar navigationBar.standardAppearance = standardAppearance let scrollEdgeAppearance = UINavigationBarAppearance() + scrollEdgeAppearance.configureWithDefaultBackground() scrollEdgeAppearance.backgroundColor = .systemBackground scrollEdgeAppearance.shadowColor = .clear |