Merge branch 'develop' into feature/atomic_vds_button
This commit is contained in:
commit
840b473587
@ -119,7 +119,7 @@ public extension UINavigationController {
|
||||
setNavigationBarHidden(model.hidden, animated: true)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@objc @MainActor
|
||||
func getViewController() -> UIViewController? {
|
||||
guard let topViewController = getViewControllers().last,
|
||||
let viewController = MVMCoreUIUtility.getViewControllerTraversingManagers(topViewController) else { return nil }
|
||||
|
||||
@ -57,9 +57,10 @@ public extension MVMCoreUIUtility {
|
||||
return findViews(by: type, views: queue) + matching
|
||||
}
|
||||
|
||||
@MainActor
|
||||
static func visibleNavigationBarStlye() -> NavigationItemStyle? {
|
||||
if let vc = MVMCoreUIUtility.getCurrentVisibleController(),
|
||||
let navController = NavigationController.navigationController(),
|
||||
if let navController = NavigationController.navigationController(),
|
||||
let vc = navController.getViewController(),
|
||||
let navigationBar = navController.getNavigationModel(from: vc) as? NavigationItemModel {
|
||||
return navigationBar.style
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user