Accordions, HEADING role.
MayurPatel0 opened this issue · 2 comments
MayurPatel0 commented
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.
pauljadam commented
@MayurPatel0 I don't think that code actually works, can you build a demo with a VoiceOver screenshot to prove it does?
pauljadam commented
Closing until a demo can be provided as I don't think this code works.