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

Enable UINavigationBar translucency by default #1367

Merged
merged 2 commits into from
Sep 10, 2019

Conversation

davidme-stripe
Copy link
Contributor

@davidme-stripe davidme-stripe commented Sep 10, 2019

Summary

Enable translucency by default to fix a few prefersLargeTitles-related bugs.

Motivation

It doesn't feel like UIViewController's Large Title support was designed with translucency = NO in mind. It expects the UIViewController's view to draw underneath the area of the UINavigationBar, which doesn't happen when translucency is disabled. I considered enabling extendedLayoutIncludesOpaqueBars instead, which would only enable the overdrawing behavior, but no longer opting out of translucency seems like it would bring us closer to the UIKit happy path.

Testing

Tested in simulator on iOS 12.2 and iOS 13 in Standard Integration and UI Examples with prefersLargeTitles = YES.

@davidme-stripe davidme-stripe merged commit d295690 into master Sep 10, 2019
@davidme-stripe davidme-stripe deleted the davidme/force-enable-translucency branch September 10, 2019 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants