Show additional navigation bar items at the topmost level of UIDocumentBrowserViewController

Originator:douglashill
Number:rdar://42859637 Date Originated:02-Aug-2018 05:35 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.4.1 / 12.0 dev beta 5
Classification:Enhancement Reproducible:Always
 
Summary:
In UIDocumentBrowserViewController any bar button items added to additionalTrailingNavigationBarButtonItems or additionalLeadingNavigationBarButtonItems don’t show up on the initial screen of the Browse tab (The screen where Locations, Favorites and Tags are shown.)

You need to select any of the shown items from the Locations, Favorites or Tags list, to be able to see the app specific navigation bar button items.
The navigation bar items are correctly shown on all the other screen in UIDocumentBrowserViewController.

In regular width environments where UIDocumentBrowserViewController uses a split view it would be useful in some cases to show button at the top of the left split instead of the right split, since app settings make most sense at the top level.

Steps to Reproduce:
- Add bar button items to additionalLeadingNavigationBarButtonItems or additionalTrailingNavigationBarButtonItems.
- Navigate to the initial Browse screen, where Locations are shown.

Expected Results:
Bar button items added via additionalTrailingNavigationBarButtonItems or additionalLeadingNavigationBarButtonItems are shown anywhere in UIDocumentBrowserViewController, including this specific screen.

Actual Results:
Bar button items added via additionalTrailingNavigationBarButtonItems or additionalLeadingNavigationBarButtonItems are not shown on this specific screen.

Version:
11.4.1 / 12.0 dev beta 5

Notes:
This is similar to #42857158

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!