Specifying additional bar button items for UIDocumentBrowserViewController leaves no space in the NavigationBar on iPhone

Originator:matthias.tretter
Number:rdar://32846032 Date Originated:19-Jun-2017 11:56 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 11b1
Classification:UI/Usability Reproducible:Always
 
Summary:
UIDocumentBrowserViewController offers the possibility to specify additional leading or trailing UIBarButtonItems, which is very neat. However, the default UI itself already takes up so much space (e.g. default item "Select"), that specifying 2 additional trailing items with an image already results in a more than crowded NavigationBar on iPhone, once a title is shown (e.g. drilled-down into a Folder).

Since UIDocumentBrowserViewController doesn't give us any other way to add custom global actions like showing the In-App Settings, Help etc., this is a serious problem for document-based apps on iPhone.  It would be very easy to integrate the "Recent Documents" into the "Browse" Tab, leaving space for a UIToolbar instead of the UITabBar at the bottom. UIDocumentBrowserViewController is the only sane option for document-based apps going forward, so it's very important that it can be better customized to the different Apps' needs.

Steps to Reproduce:
1. Open the attached DocumentBrowser-based App on iPhone 6 in Portrait mode
2. Create a new Folder named "Secret Folder"
3. Open the Folder
4. Observe the NavigationBar

Expected Results:
Everything looks nice and clean, the name of the Folder is visible, the ViewController title and the buttons are visible and legible.

Actual Results:
The NavigationBar looks very crowded and the Title of the current folder is barely visible.

Version:
iOS 11b1

Notes:
Possible solutions:
 1. Remove default "Select" button from NavigationBar and place it somewhere else
 2. Allow us to only show additional items on certain screens (e.g. the first level, not when we are drilled-down into another level)
 3. Give us the option to show a Toolbar at the Bottom instead of the default TabBar, which only has 2 options. The "Recents" TabBar Entry could be easily integrated into the "Browse" Tab and would free us from the need to always show a TabBar at the bottom

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!