Merge branch 'develop' into feature/atomic_vds_button

This commit is contained in:
Scott Pfeil 2023-10-23 15:40:26 -04:00
commit 840b473587
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

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