Const
This rule matches to a SwiftUI view with a .accessibilityValue modifier, which is used for providing a textual description of the value represented by the view for screen reader users. The transformation removes the modifier.
.accessibilityValue
Before:
Toggle(...) .accessibilityValue(isChecked ? "Checked" : "Unchecked") Copy
Toggle(...) .accessibilityValue(isChecked ? "Checked" : "Unchecked")
After:
Toggle(...) Copy
Toggle(...)
Applicable WCAG Success Criteria:
This rule matches to a SwiftUI view with a
.accessibilityValue
modifier, which is used for providing a textual description of the value represented by the view for screen reader users. The transformation removes the modifier.Before:
After:
Applicable WCAG Success Criteria: