UIDocumentBrowserViewController additional navigation bar button items ignore accessibility label
Originator: | steipete | ||
Number: | rdar://45851669 | Date Originated: | 06-Nov-2018 09:02 PM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 12.0.1 |
Classification: | UI/Usability | Reproducible: | Always |
Summary: This is a duplicate of radar #45848685 The accessibilityLabel is ignored when set on UIBarButtonItems set as additionalLeadingNavigationBarButtonItems and additionalTrailingNavigationBarButtonItems of a UIDocumentBrowserViewController. This means custom navigation bar buttons added to a UIDocumentBrowserViewController are inaccessible. They just read the text ‘button’ with VoiceOver. You can see/hear this in our app, PDF Viewer by PSPDFKit. Our settings button set in additionalLeadingNavigationBarButtonItems has an accessibility label set on the app side, but this is not used when using VoiceOver. You can also see this in MindNode, although I don’t know if they’re setting the accessibilityLabel but it’s a well made app so it’s likely they are. I guess the UIBarButtonItems are serialised to pass over XPC, and the accessibilityLabel is not included in the serialisation. Steps to Reproduce: 1. Run the attached sample project. It’s the document-based app project template with a few lines added to set additionalLeadingNavigationBarButtonItems with an item created with an image that has an accessibilityLabel. 2. Enable VoiceOver. 3. Focus the circular button with the VoiceOver cursor. Expected Results: VoiceOver reads “Do the thing, button” Actual Results: VoiceOver reads “button” Version: 12.0.1 Notes: Example: https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/45848685%20-%20UIDocumentBrowserViewController%20additional%20navigation%20bar%20button%20items%20ignore%20accessibility%20label
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!