ios-swiftui-accessibility-techniques
ios-swiftui-accessibility-techniques copied to clipboard
Accordions, HEADING role.
trafficstars
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?