UIBarButtonItem Long Press Menu

Is there a way to specify where the backBarButtonItem.menu gets its label from for a screen. The WWDC video says that it selects the best from title, backButtonTitle and backbarbuttonItem.title. We want to specify that it comes from backButtonTitle because for some of our screens we set  
Code Block
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
it seems to always use the backBarButton.title if it is there so we are getting an empty string in our back button context menu.
I would like to know this as well. We use the same technique so that the "Back" item appears with no text, but for purposes of the menu we would like to provide a meaningful title for each item on the navigation stack (as opposed to presenting a menu of empty entries).
Looking through the headers in the iOS 14 SDK, it appears that a property has been added to UINavigationItem: backButtonDisplayMode. One of the enumeration values available is UINavigationItemBackButtonDisplayModeMinimal (.minimal, in Swift). According to the comment in the header:


Code Block
    /// Don't use a title, just the back button indicator image.


So it appears there is a way to have the "Back" item appear with no text, but also use the normal methods for providing a meaningful title for purposes of the menu.


UIBarButtonItem Long Press Menu
 
 
Q