Skip to content

Commit c51223b

Browse files
committed
Update SwiftLintView.swift
1 parent 9d7ea86 commit c51223b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,19 @@ 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")
74+
Image(systemName: "star.fill")
75+
.foregroundColor(.yellow)
76+
Button {
77+
print("Tapped")
78+
} label: {
79+
Image(systemName: "trash")
80+
}
81+
Circle()
82+
.fill(Color.blue)
83+
.frame(width: 50, height: 50)
84+
.onTapGesture {
85+
print("Tapped circle")
86+
}
8487
DisclosureGroup("Details") {
8588
Text("The bad example has no single tap alternatives to move or zoom the map.")
8689
}.accessibilityHint("Bad Example")

0 commit comments

Comments
 (0)