Add UIDocumentBrowserAction API to be disabled in the Recently Deleted location

Originator:steipete
Number:rdar://42858251 Date Originated:02-Aug-2018 06:01 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.4.1 & 12b5
Classification:Enhancement Reproducible:Always
 
Summary:
This is a duplicate of radar #42856531

Currently all customAction added to UIDocumentBrowserViewController show up in all locations. There is no way to restrict some or all actions to only show up in specific locations, or not show up in specific locations.

There might be some actions that don’t add any value when showing them in e.g. the Recently Deleted location.


Steps to Reproduce:
- Create a UIDocumentBrowserAction.
- Add the action to UIDocumentBrowserViewController.customActions.
- Navigate to different locations/folders in the document browser.

Expected Results:
There is API to disable and not show an action for certain parts/locations/folders of the document browser.

Actual Results:
There is no API to disable and not show an action for certain parts/locations/folders of the document browser.

Version:
11.4.1 & 12b5

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!