Const
This rule matches to a SwiftUI view with a .accessibility modifier, which is used to provide a text alternative for screen reader users to a view that doesn't display text. The transformation removes the label.
.accessibility
Before:
Button(...) {...} .accessibility(label: Text("Close")) Copy
Button(...) {...} .accessibility(label: Text("Close"))
After:
Button(...) {...} Copy
Button(...) {...}
Applicable WCAG Success Criteria:
This rule matches to a SwiftUI view with a
.accessibility
modifier, which is used to provide a text alternative for screen reader users to a view that doesn't display text. The transformation removes the label.Before:
After:
Applicable WCAG Success Criteria: