SwiftUI Practice Test
SwiftUI SwiftUI Gestures and Interactions
Which SwiftUI modifier is used to add a tap gesture to a view?
Select your answer
A
.onTapGesture { }
B
.tapGesture { }
C
.addTap { }
D
.gesture(TapRecognizer())
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →