cvs-health/ios-swiftui-accessibility-techniques

Accordions, HEADING role.

Opened this issue · 1 comments

Just like in web we expect accordions to have heading role. For disclosure group, we can achieve this by .accessibilityElement(children: .contain)
and then .accessibilityLabel("The disclosure group text").

This will add the heading role, to the disclosure group.

@MayurPatel0 I don't think that code actually works, can you build a demo with a VoiceOver screenshot to prove it does?