UIDocumentBrowserViewController should provide a way to show a custom UI before showing the share sheet

Number:rdar://41251386 Date Originated:19-Jun-2018 05:59 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 11+
Classification:Feature (New) Reproducible:Always
We would like to be able to show custom export options before invoking the System share UI on UIDocumentBrowserViewController. 

Steps to Reproduce:
Open PDF Viewer by PSPDFKit. Long press on a file in the root UIDocumentBrowserViewController. Select “Share”. 

Expected Results:
Our own UI for selecting export options (which pages) would be shown. Just as we do when sharing inside the actual document viewing UI. 

Actual Results:
The system UI is presented and we don’t have a way to hook into this flow. 

iOS 11+

Compare this flow to selecting out custom “Export” action on the same menu. This does show our options UI.



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!