-
Notifications
You must be signed in to change notification settings - Fork 378
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
Move content under statusBar if prefersStatusBarHidden is false #221
Conversation
A version of this that only shows the status bar when the chrome is shown would be great. I might take my hand at it if you don't want to include it here. |
+1 for this. Had issues when dismissing the NYTPhotosViewController, the now-shown VC would have things overlapping, no matter what setNeedsStatusBarUpdate/NeedsLayout/NeedsWhatever was called. Moved my Podfile pointer to your commit, no more problems. Nicely done! |
@scottcc Could you show me what that line in your Podfile looked like? It's giving me issues. Thanks! |
Sure: |
+1 |
Anybody else seeing the content jump downward the height of the status bar to accommodate after the modal finishes transitioning in? |
@sergiog90 Regarding my prior comment from about an hour ago, I found that the animations are no longer offset/broken between view and modal if you leave the self.pageViewController.view.frame = self.view.bounds; // frame; That way, the photo remains centered on the screen, but the navigation bar isn't clipping the status bar? Does this look OK to you, or break something that you were intending to change? I think maybe it's best to update your branch if fine. |
a belated thanks for this submission @sergiog90! i'm closing this PR in favor of #336. |
neither this nor the referenced #336 pull request has been merged as of this writing. 😢 |
Allow developers to show the status bar with navigation bar buttons without overlaps.
If gallery is showed with visible status bar the navigation buttons overlaps it, with this small change you can set to move content origin under status bar to prevent it.
Before:
After:
Code: