Manos Chorianopoulos

fix nav bar bg

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