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