diff --git a/System/AppDelegate.swift b/System/AppDelegate.swift index 4332bcb..57b18f6 100644 --- a/System/AppDelegate.swift +++ b/System/AppDelegate.swift @@ -27,6 +27,8 @@ extension AppDelegate: UIApplicationDelegate { didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { self.application = application + configureGlobalAppearance() + return true } @@ -40,3 +42,16 @@ extension AppDelegate: UIApplicationDelegate { deviceTokenSubject.send(completion: .failure(error)) } } + +private extension AppDelegate { + func configureGlobalAppearance() { + if #available(iOS 15, *) { + let appearance = UINavigationBarAppearance() + + appearance.configureWithDefaultBackground() + + UINavigationBar.appearance().standardAppearance = appearance + UINavigationBar.appearance().scrollEdgeAppearance = appearance + } + } +}