Allow using a custom view for UIDocumentBrowserAction

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

Currently it is only possible to specify a title or an image for UIDocumentBrowserAction. The image property is only supported when the action is shown in the navigation bar.

It should also be possible to provide a custom view that is used when a UIDocumentBrowserAction is shown in the navigation bar. Since the action most likely uses a UIBarButtonItem under the hood, this could by made possible by taking advantage of UIBarButtonItem.init(customView: UIView).


Steps to Reproduce:
- Create a UIDocumentBrowserAction with a navigation bar availability.
- Add the action to customActions of UIDocumentBrowserViewController.

Expected Results:
It is possible to provide a custom view, that is used instead of text or an image when using UIDocumentBrowserAction.

Actual Results:
It is not possible to provide a custom view. It is only possible to use either a text or an image when using UIDocumentBrowserAction.

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!