Learning Time : 1h 15min
My Github : Flashzilla Source Code
My Note index link

KeyWords
- Gesture
- onLongPressGesture()
- MagnificationGesture
- RotationGesture
- highPriorityGesture()
- simultaneousGesture()
- Gesture sequences
- Haptic effects
- .sensoryFeedback()
- CoreHaptics
- User interactivity
- .allowsHitTesting()
- .contentShape()
How to use gestures in SwiftUI
Handling Simple Taps
Text("Hello, World!")
.onTapGesture(count: 2) {
print("Double tapped!")
}
LongPressGesture
onLongPressGesture()
to detect long presses.