SFSafariViewController should provide hooks for statusBarStyle changes

Originator:futuretap
Number:rdar://22497299 Date Originated:31-Aug-2015 12:20 PM
Status:Closed Resolved:
Product:iOS SDK Product Version:9.0 beta 5
Classification:UI/Usability Reproducible:Always
 
We're using UI Appearance customization to change the background of the standard navigation bar and use UIStatusBarStyleLightContent (=white text/icon color) with it.

SFSafariViewController itself renders fine with its custom navigation bar and UIStatusBarStyleDefault.

However, when using the share sheet to send an email or Message, the status bar style should be switched to UIStatusBarStyleLightContent to match the status bar color with the customized navigation bar. We can't find any hook to do so.

We propose to add these methods to SFSafariViewControllerDelegate:

- (void)safariViewController:(SFSafariViewController *)controller willDisplayViewController:(UIViewController*)viewController;
- (void)safariViewController:(SFSafariViewController *)controller willDismissViewController:(UIViewController*)viewController;

Then we could put our status bar style changing code there.

Comments

Seems to have been "resolved" in iOS 11 final by entirely removing support for UI Appearance customization. :(


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!