iOS: #1213 (status bar in browser when full-screen)

- Reproduced by scrolling a story to go full-screen, double-click to show the Safari browser view, interactively go partially back, then scroll in the browser.
- Now shows the navigation bar when using the browser, since the browser shows it, so they’re consistent.
This commit is contained in:
David Sinclair 2019-07-18 20:50:19 -07:00
parent 7b0590ace4
commit 66f34998bb

View file

@ -1886,6 +1886,7 @@
} else if ([storyBrowser isEqualToString:@"inappsafari"]) {
self.safariViewController = [[SFSafariViewController alloc] initWithURL:url];
self.safariViewController.delegate = self;
[self.storyPageControl setNavigationBarHidden:NO];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
self.safariViewController.modalPresentationStyle = UIModalPresentationPageSheet;
}
@ -1893,6 +1894,7 @@
} else if ([storyBrowser isEqualToString:@"inappsafarireader"]) {
self.safariViewController = [[SFSafariViewController alloc] initWithURL:url entersReaderIfAvailable:YES];
self.safariViewController.delegate = self;
[self.storyPageControl setNavigationBarHidden:NO];
[navigationController presentViewController:self.safariViewController animated:YES completion:nil];
} else {
if (!originalStoryViewController) {