remove iOS 13 check
This commit is contained in:
parent
e875002cb1
commit
b4d7392675
@ -124,15 +124,13 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
|
|||||||
/// Hides/Shows the navigation bar for the page.
|
/// Hides/Shows the navigation bar for the page.
|
||||||
open func hideNavigationBarLine(_ isHidden: Bool) {
|
open func hideNavigationBarLine(_ isHidden: Bool) {
|
||||||
guard self == navigationController?.topViewController else { return }
|
guard self == navigationController?.topViewController else { return }
|
||||||
if #available(iOS 13.0, *) {
|
var color = UIColor.clear
|
||||||
var color = UIColor.clear
|
if !isHidden,
|
||||||
if !isHidden,
|
let backgroundColor = (getCurrentViewController() as? PageProtocol)?.pageModel?.navigationBar?.line?.backgroundColor?.uiColor {
|
||||||
let backgroundColor = (getCurrentViewController() as? PageProtocol)?.pageModel?.navigationBar?.line?.backgroundColor?.uiColor {
|
color = backgroundColor
|
||||||
color = backgroundColor
|
|
||||||
}
|
|
||||||
navigationController?.navigationBar.standardAppearance.shadowColor = color
|
|
||||||
navigationController?.navigationBar.scrollEdgeAppearance?.shadowColor = color
|
|
||||||
}
|
}
|
||||||
|
navigationController?.navigationBar.standardAppearance.shadowColor = color
|
||||||
|
navigationController?.navigationBar.scrollEdgeAppearance?.shadowColor = color
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func updateViews() {
|
open override func updateViews() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user