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

Fix statusBarHidden setting in iOS 14 #1

Merged
merged 1 commit into from
May 16, 2021
Merged

Conversation

jocmp
Copy link
Owner

@jocmp jocmp commented May 16, 2021

Previously the statusBarHidden setting only worked in version iOS v12 and below.

The fix is to use the prefersStatusBarHidden API on UIViewController instead as well as the modalPresentationCapturesStatusBarAppearance var which will pass the status bar setting to the view's paging children controllers.

Fixes Krisiacik#220

Demo

Demo.mp4

Previously the statusBarHidden setting
only worked in version iOS v12 and below.

The fix is to use the prefersStatusBarHidden
API on UIViewController instead as well as
the modalPresentationCapturesStatusBarAppearance
var which will pass the status bar setting
to the view's paging children controllers.
@jocmp jocmp merged commit 05321cb into master May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

statusBarHidden no longer works in iOS 13
1 participant