Skip to content

Commit b01d1d7

Browse files
authored
Merge pull request #19 from cvs-health/swift-lint-pr-test
Update SwiftLintView.swift
2 parents 83570e7 + 9d7ea86 commit b01d1d7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct SwiftLintView: View {
4646
.resizable()
4747
.aspectRatio(contentMode: .fit)
4848
.frame(width: 100, height: 100)
49-
// .accessibilityLabel("Get 10% off")
49+
.accessibilityLabel("Get 10% off")
5050
.accessibilityIdentifier("goodImage")
5151
DisclosureGroup("Details") {
5252
Text("The good example has an `.accessibilityLabel` set on it.")
@@ -71,6 +71,16 @@ struct SwiftLintView: View {
7171
.aspectRatio(contentMode: .fit)
7272
.frame(width: 100, height: 100)
7373
.accessibilityIdentifier("badImage")
74+
Image("get10off")
75+
.resizable()
76+
.aspectRatio(contentMode: .fit)
77+
.frame(width: 100, height: 100)
78+
.accessibilityIdentifier("badImage")
79+
Image("get10off")
80+
.resizable()
81+
.aspectRatio(contentMode: .fit)
82+
.frame(width: 100, height: 100)
83+
.accessibilityIdentifier("badImage")
7484
DisclosureGroup("Details") {
7585
Text("The bad example has no single tap alternatives to move or zoom the map.")
7686
}.accessibilityHint("Bad Example")

0 commit comments

Comments
 (0)