isBeingPresented == false after presenting view controller from UIDocumentBrowserViewController

Originator:robert.wijas
Number:rdar://38500183 Date Originated:15-Mar-2018 03:15 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2
Classification:UI/Usability Reproducible:Always
 
Summary:
After presenting view controller from UIDocumentBrowserViewController the presented view controller’s isBeingPresented property is still set to false.

Steps to Reproduce:
See attached playground.

Expected Results:
isBeingPresented should be set to true, which is the case when presenting form UIViewController.

Actual Results:
isBeingPresented is set to false.

Version:
11.2

Notes:
This is an unexpected inconsistency. There’s no way to detect that the controller is already being presented by inspecting it’s state. If you need to prevent from presenting the controller twice you need to track the state.

Comments

Playground

By robert.wijas at March 15, 2018, 2:25 p.m. (reply...)

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!