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