Skip to content

Commit a01e73a

Browse files
authored
Merge pull request #754 from SebastienFCT/master
Adding support for translucent nav bar
2 parents f9692ff + b109565 commit a01e73a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Auth/FirebaseAuthUI/FUIAuthPickerViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ - (instancetype)initWithNibName:(NSString *)nibNameOrNil
9191
- (void)viewDidLoad {
9292
[super viewDidLoad];
9393

94+
// Makes sure that embedded scroll view properly handles translucent navigation bar
95+
if (!self.navigationController.navigationBar.isTranslucent) {
96+
self.extendedLayoutIncludesOpaqueBars = true;
97+
}
98+
9499
if (!self.authUI.shouldHideCancelButton) {
95100
UIBarButtonItem *cancelBarButton =
96101
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel

0 commit comments

Comments
 (0)