Method to check style of current navigation bar.
This commit is contained in:
parent
3e60a853b4
commit
1beb6584b7
@ -56,4 +56,13 @@ public extension MVMCoreUIUtility {
|
||||
|
||||
return findViews(by: type, views: queue) + matching
|
||||
}
|
||||
|
||||
static func visibleNavigationBarStlye() -> NavigationItemStyle? {
|
||||
if let vc = MVMCoreUIUtility.getCurrentVisibleController(),
|
||||
let navController = NavigationController.navigationController(),
|
||||
let navigationBar = navController.getNavigationModel(from: vc) as? NavigationItemModel {
|
||||
return navigationBar.style
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user