Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting iOS status bar visibility without being tied to full screen #8449

Open
KyleHershey opened this issue Aug 21, 2024 · 0 comments

Comments

@KyleHershey
Copy link

Intent

The current implementation of PrefersStatusBarHidden on iOS is based on IsFullScreen in GraphicsDeviceManager. This is fine, but setting IsFullScreen to true has other consequences like needing to swipe up twice to exit the app. Developers should be able to have more granular control over whether they want to hide the status bar, but not have the other consequences of being a full screen app.

Implementation here:

public override bool PrefersStatusBarHidden()
{
return _platform.Game.graphicsDeviceManager.IsFullScreen;
}

Motivation

I'm doing this by forking MonoGame, but shouldn't have to do this: there should be something like an Info.plist entry which can be toggled on/off to toggle the status bar (and if not present use the default implementation), or a boolean in the Game class, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant