Presenting modal on top of UIDocumentBrowserViewController

Originator:marcin.krzyzanowski
Number:rdar://40717365 Date Originated:01/06/2018
Status:Open Resolved:
Product:iOS+SDK Product Version:11.4
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
When presenting modal view controller on top of UIDocumentBrowserViewController the presented view controller is missing from the Window hierarchy. Effectively, when trying to cascade 2 or more modal view controllers on top of UIDocumentBrowserViewController, only first is presented. Every next attempt to present is discarded. The presented modal view controller is not reachable from the view hierarchy.

Steps to Reproduce:
1. Setup UIDocumentBrowserViewController as a root view controller
2. Prepare two instances of view controller to present on top of document browser: modal1VC, modal2VC
3. Present view controllers, one after another
3.1. browser.present(modal1VC, animated: true, completion: nil)
3.2. browser.present(modal2VC, animated: true, completion: nil)

Expected Results:
`modal2VC` is visible

Actual Results:
`modal1VC` is visible

Version/Build:
Xcode version 9.4 (9F1027a).
iOS 11.4

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!