diff --git a/src/Controls/src/Core/Platform/iOS/NavigationViewHandlerToolbarHelper.cs b/src/Controls/src/Core/Platform/iOS/NavigationViewHandlerToolbarHelper.cs index b18f8297811c..bae4f1dc63cd 100644 --- a/src/Controls/src/Core/Platform/iOS/NavigationViewHandlerToolbarHelper.cs +++ b/src/Controls/src/Core/Platform/iOS/NavigationViewHandlerToolbarHelper.cs @@ -113,6 +113,11 @@ internal void NotifyStackChanged() public override UIViewController ChildViewControllerForStatusBarHidden() => (Child?.Handler as IPlatformViewHandler)?.ViewController ?? this; +#if !MACCATALYST + public override UIViewController ChildViewControllerForStatusBarStyle() => + (Child?.Handler as IPlatformViewHandler)?.ViewController ?? base.ChildViewControllerForStatusBarStyle()!; +#endif + public override bool PrefersStatusBarHidden() { if ((Child?.Handler as IPlatformViewHandler)?.ViewController is UIViewController childVC) diff --git a/src/Core/src/Platform/iOS/NavigationControllerManager/NavigationControllerManager.cs b/src/Core/src/Platform/iOS/NavigationControllerManager/NavigationControllerManager.cs index 6b0ade0a2ba0..a3001d3eaf48 100644 --- a/src/Core/src/Platform/iOS/NavigationControllerManager/NavigationControllerManager.cs +++ b/src/Core/src/Platform/iOS/NavigationControllerManager/NavigationControllerManager.cs @@ -231,6 +231,17 @@ public override UIViewController ChildViewControllerForStatusBarHidden() return base.ChildViewControllerForStatusBarHidden()!; } +#if !MACCATALYST + public override UIViewController ChildViewControllerForStatusBarStyle() + { + if (_currentTopVC?.TryGetTarget(out var vc) == true) + { + return vc; + } + return base.ChildViewControllerForStatusBarStyle()!; + } +#endif + [Export("navigationBar:shouldPopItem:")] bool ShouldPopItem(UINavigationBar navigationBar, UINavigationItem item) {