UIDocumentViewController and multiple windows

I'm trying to migrate my document-based app to UIDocumentViewController so that it can take advantage of the new launch experience in iOS 18.

Unfortunately, UIDocumentViewController closes the UIDocument when the document is set to nil or the controller is deallocated. This means you can't have the same document in more than one scene.

Is there any way to prevent UIDocumentViewController from closing the document?

-Steve

Thank you for this valuable insight! Please file feedback with your enhancement request.

UIDocumentViewController and multiple windows
 
 
Q