Manos Chorianopoulos

fix nav bar bg

......@@ -6,6 +6,7 @@
//
import UIKit
import SwiftEventBus
@objc public class LoyaltyAnalysisViewController: UIViewController {
......
......@@ -45,6 +45,7 @@ extension UIViewController {
self.navigationItem.title = ""
// Add backgroundColor
if #available(iOS 15, *) {
let navigationBarAppearance = UINavigationBarAppearance()
navigationBarAppearance.configureWithDefaultBackground()
navigationBarAppearance.backgroundColor = .white
......@@ -52,6 +53,11 @@ extension UIViewController {
navigationItem.standardAppearance = navigationBarAppearance
navigationItem.compactAppearance = navigationBarAppearance
navigationItem.scrollEdgeAppearance = navigationBarAppearance
} else {
navigationController?.navigationBar.barTintColor = UIColor.white
navigationController?.navigationBar.tintColor = UIColor.white
// navigationController?.navigationBar.isTranslucent = false
}
}
......