Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui into feature/molecule_replacement_behavior

This commit is contained in:
vimal 2023-10-18 11:51:10 +05:30
commit 87e2b66dce
2 changed files with 4 additions and 3 deletions

View File

@ -119,7 +119,7 @@ public extension UINavigationController {
setNavigationBarHidden(model.hidden, animated: true) setNavigationBarHidden(model.hidden, animated: true)
} }
@MainActor @objc @MainActor
func getViewController() -> UIViewController? { func getViewController() -> UIViewController? {
guard let topViewController = getViewControllers().last, guard let topViewController = getViewControllers().last,
let viewController = MVMCoreUIUtility.getViewControllerTraversingManagers(topViewController) else { return nil } let viewController = MVMCoreUIUtility.getViewControllerTraversingManagers(topViewController) else { return nil }

View File

@ -57,9 +57,10 @@ public extension MVMCoreUIUtility {
return findViews(by: type, views: queue) + matching return findViews(by: type, views: queue) + matching
} }
@MainActor
static func visibleNavigationBarStlye() -> NavigationItemStyle? { static func visibleNavigationBarStlye() -> NavigationItemStyle? {
if let vc = MVMCoreUIUtility.getCurrentVisibleController(), if let navController = NavigationController.navigationController(),
let navController = NavigationController.navigationController(), let vc = navController.getViewController(),
let navigationBar = navController.getNavigationModel(from: vc) as? NavigationItemModel { let navigationBar = navController.getNavigationModel(from: vc) as? NavigationItemModel {
return navigationBar.style return navigationBar.style
} }