Reading time: 5 min
This recipe shows how to detect when touch enters or exits your view. It shows how to do this for for two scenarios:
- Detect enter/exit in a single view.
- Detect enter/exit on a group of views, all sharing a single gesture.
Reading time: 4 min
This recipe shows how to zoom an image in SwiftUI using the pinch/magnify gesture. The image is zoomed in or out at the midpoint between the fingers, supports dragging and double tap to zoom in or reset.
Reading time: 1 min
This recipe shows how to implement shake gesture detection in SwiftUI.