remove iOS 13 check

This commit is contained in:
Scott Pfeil 2022-03-10 13:44:07 -05:00
parent e875002cb1
commit b4d7392675

View File

@ -124,7 +124,6 @@ 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 {
@ -133,7 +132,6 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
navigationController?.navigationBar.standardAppearance.shadowColor = color navigationController?.navigationBar.standardAppearance.shadowColor = color
navigationController?.navigationBar.scrollEdgeAppearance?.shadowColor = color navigationController?.navigationBar.scrollEdgeAppearance?.shadowColor = color
} }
}
open override func updateViews() { open override func updateViews() {
super.updateViews() super.updateViews()