Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Loading