Manos Chorianopoulos

hide NavigationBar at webviews

......@@ -15,19 +15,21 @@ import SwiftEventBus
public var campaignUrl: String = ""
public var params: String = ""
public var showHeader: Bool = true
public var showHeader: Bool = false
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if (!showHeader) {
navigationController?.setNavigationBarHidden(true, animated: animated)
// navigationController?.setNavigationBarHidden(true, animated: animated)
self.navigationController?.isNavigationBarHidden = true
}
}
public override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if (!showHeader) {
navigationController?.setNavigationBarHidden(false, animated: animated)
// navigationController?.setNavigationBarHidden(false, animated: animated)
self.navigationController?.isNavigationBarHidden = false
}
}
......