cvs-health / ios-swiftui-accessibility-techniques

Demonstrates iOS SwiftUI Accessibility programming techniques using live good and bad examples that can be tested with VoiceOver and other AT. Includes documentation for developers explaining how to code accessible patterns for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Validation: use .accessibilityValue matching the visible error message text for each invalid input

MarcSolo opened this issue · comments

IMO, .accessibilityValue is another valid technique to expose an input's helper text and error message. Unlike .accessibilityHint, I don't think users can disable the announcement of an element's .accessibilityValue. This is why I think using .accessibilityValue may be a more robust approach.

My recommendation is to update the Error Validation coding technique (and associated documentation page) to include a "good" example that demonstrates how to use .accessibilityValue.

Thanks for the feedback! I've added that second good example using .accessibilityValue.

Will be out it in the App Store sometime today likely.