UIDocumentInteractionController presented view controller status bar style

Originator:yonic.surny
Number:rdar://32767467 Date Originated:6/14/2017
Status:Open Resolved:
Product:iOS+SDK UIKit Product Version:iOS 10.3
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary:
When opening a preview of a document (e.g. a PDF) using UIDocumentInteractionController the status bar style of the modal view controller presented should match the style (appearance) of the rest of the app. In this demo project while the status bar is set to .lightContent the view controller presented by the UIDocumentInteractionController has a status bar style of .default.

Example project available at: https://github.com/saeros/radar-UIDIC

Steps to Reproduce:
Present a preview of a document (e.g. PDF) using UIDocumentInteractionController in an app configured to use per view controller status bar appearance definition with styling using appearance proxy.

Expected Results:
The status bar appearance (style) should match with the presenter or app defined appearance.

Observed Results:
The status bar style is always the default (i.e. black).

Version:
Xcode 8.3 (iOS 10)
Xcode 9 (iOS 11)

Notes:
The only solution I've found that works is by setting the UIViewControllerBasedStatusBarAppearance property to false in the Info.plist. But doing so we lose the ability to set the status bar style per view controller.

Comments


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!