Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <marino@marinofaggiana.com>2022-09-23 17:14:04 +0300
committerMarino Faggiana <marino@marinofaggiana.com>2022-09-23 17:14:04 +0300
commitcdc935491848df79656e98c7683156c934b44150 (patch)
treed73959c8eeb5ca1261f2ede1e0e734e9521e56f3
parent6e9dcd96514b573bcbe84ad4ff30cf92dc7daaf5 (diff)
improved UINavigationBarAppearance
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r--iOSClient/Main/NCMainNavigationController.swift6
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