tvOS 15 beta: Accessibility via VoiceOver does not work with SwiftUI views on tvOS

Originator:defagos
Number:rdar://FB9524280 Date Originated:Aug 17, 2021
Status:Closed Resolved:No
Product:SwiftUI / tvOS Product Version:15 beta
Classification:Bug Reproducible:Always
 
Description of the problem:
---------------------------
Accessibility via VoiceOver does not work for SwiftUI views on tvOS 15 beta (beta 5 at the time of this writing). The accessibility label is not read and the user is completely lost.

Step-by-step instructions:
--------------------------
I provide an extremely simple sample project attached to this feedback. This is a SwiftUI tvOS app with a minimal app delegate and content view containing two buttons. I attached accessibility labels to both buttons (also marked to be accessibility elements):

1. Open the attached sample project.
2. Run the project on a tvOS 15 device.
3. Enable VoiceOver.
4. Navigate between the buttons with the Apple TV remote. Accessibility labels are never read.

If you build and run the same project on a tvOS 14 device labels are correctly read. 

Remark: If no accessibility label is attached to the buttons (easy to reproduce by removing the accessibility view modifiers in the same sample code) VoiceOver will read the button label on tvOS 14, but nothing on tvOS 15 beta.

Expected result:
----------------
VoiceOver reads accessibility labels attached to SwiftUI views correctly on tvOS 15.

Actual result:
----------------
VoiceOver does not read accessibility labels attached to SwiftUI views correctly on tvOS 15.

Comments

Issue duplicate for tvOS 15 release

See https://openradar.appspot.com/radar?id=5062590648549376

I have closed this issue to avoid a duplicate with the new one, but the issue is of course not fixed.

Sample code has been moved: https://github.com/defagos/radars/tree/master/accessibility-issues-tvos15

Sample code

Available on GitHub: https://github.com/defagos/radars/tree/master/accessibility-issues-ios15beta


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!