UIDocumentBrowserViewController' "Create Document" action should accept UI drops to trigger the document creation flow

Originator:oscar
Number:rdar://42287075 Date Originated:17-Jul-2018 10:58 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.4.1
Classification:Enhancement Reproducible:Always
 
Summary:
Implementing UIDocumentBrowserViewControllerDelegate.documentBrowser:didRequestDocumentCreationWithHandler: enables documents creation directly from the instance of the UIDocumentBrowserViewController.

It would be a nice, useful enhancement if the "Create Document" view that's inserted at the beginning of the item list accepted drops so that the document creation routine could be started directly by dragging content from other applications.

In our application, a user can create new PDF documents by selecting a series of templates or images to include in the new PDF. Having the ability to kick off the document creation process directly with a dropped item (as collection view does with UICollectionViewDropCoordinator, for instance), would allow us to save the user a couple of steps in the process of creating a new PDF.

Examples:
- Having both our application (https://pdfviewer.io) and Photos.app side by side in a split-screen setup on an iPad, a user could drag and drop an image from Photos.app to the "Create Document" item in our application's instance of UIDocumentBrowserViewController, and our application would automatically create a new PDF document based off the dropped image.

- If the user already has a PDF template in their file collection, they could just open our application and drag that file from the file browser to the "Create Document" item to duplicate and start editing the new copy in a single step.

Steps to Reproduce:
Implement documentBrowser:didRequestDocumentCreationWithHandler: on a UIDocumentBrowserViewControllerDelegate instance.

Expected Results:
The "Create Document" item on a UIDocumentBrowserViewController instance accepts UI drops and the drop contents are passed over to the instance's delegate to proceed with the document creation.

Actual Results:
There's no way to create a new document from a dragged item using UIDocumentBrowserViewController.

Version:
11.4.1

Notes:

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!