Const
This rule matches to a SwiftUI Image element with a decorative: label, which is used to indicate that the image is purely decorative and should be ignored by screen readers. The transformation removes the label.
decorative:
Before:
Image(decorative: "icon") Copy
Image(decorative: "icon")
After:
Image("icon") Copy
Image("icon")
Applicable WCAG Success Criteria:
This rule matches to a SwiftUI Image element with a
decorative:
label, which is used to indicate that the image is purely decorative and should be ignored by screen readers. The transformation removes the label.Before:
After:
Applicable WCAG Success Criteria: