SwiftUI Touch Enter and Exit Gesture
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.
Zoom Image in SwiftUI
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.
Shake Gesture in SwiftUI
Reading time: 1 min
This recipe shows how to implement shake gesture detection in SwiftUI.
Pager / Swiper View in SwiftUI
Reading time: 3 min
This recipe shows how to implement a swipeable pager view in SwiftUI.