Merge branch 'develop' into feature/accessibilityHandler

This commit is contained in:
Krishna Kishore Bandaru 2023-10-18 14:23:08 +05:30
commit ac287ef379
2 changed files with 4 additions and 3 deletions

View File

@ -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 }

View File

@ -60,9 +60,10 @@ public extension MVMCoreUIUtility {
return findViews(by: type, views: queue, excludedViews: excludedViews) + 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
}