|
|
@ -46,6 +46,7 @@ class BaseVC : UIViewController {
|
|
|
|
|
|
|
|
|
|
|
|
internal func setUpNavBarStyle() {
|
|
|
|
internal func setUpNavBarStyle() {
|
|
|
|
guard let navigationBar = navigationController?.navigationBar else { return }
|
|
|
|
guard let navigationBar = navigationController?.navigationBar else { return }
|
|
|
|
|
|
|
|
|
|
|
|
if #available(iOS 15.0, *) {
|
|
|
|
if #available(iOS 15.0, *) {
|
|
|
|
let appearance = UINavigationBarAppearance()
|
|
|
|
let appearance = UINavigationBarAppearance()
|
|
|
|
appearance.configureWithOpaqueBackground()
|
|
|
|
appearance.configureWithOpaqueBackground()
|
|
|
@ -59,6 +60,11 @@ class BaseVC : UIViewController {
|
|
|
|
navigationBar.isTranslucent = false
|
|
|
|
navigationBar.isTranslucent = false
|
|
|
|
navigationBar.barTintColor = Colors.navigationBarBackground
|
|
|
|
navigationBar.barTintColor = Colors.navigationBarBackground
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Back button (to appear on pushed screen)
|
|
|
|
|
|
|
|
let backButton = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
|
|
|
|
|
|
|
|
backButton.tintColor = Colors.text
|
|
|
|
|
|
|
|
navigationItem.backBarButtonItem = backButton
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal func setNavBarTitle(_ title: String, customFontSize: CGFloat? = nil) {
|
|
|
|
internal func setNavBarTitle(_ title: String, customFontSize: CGFloat? = nil) {
|
|
|
|