Add Support for Custom Accessibility Traits in SwiftUI

Originator:bryn.bodayle
Number:rdar://FB12087196 Date Originated:3/30/23
Status:Open Resolved:
Product:SwiftUI Framework Product Version:
Classification:Suggestion Reproducible:
 
In our application we allow views to be set into an error state through an environment modifier. We'd like an easy to make this error state accessible. It'd be ideal if we could define a custom AccessibilityTrait for this that way we can appropriate add or remove the error state trait at the appropriate level in the view hierarchy. This is particularly necessary when we're combining the children of an accessibility element, because we want the error trait to always be included in the final VoiceOver read out.

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!