File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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 " )
You can’t perform that action at this time.
0 commit comments