https://github.com/fluidgroup/swiftui-scrollview-interoperable-drag-gesture
A custom gesture that allows scroll views to be prioritized. Hitting edges makes the gesture activate.
https://github.com/fluidgroup/swiftui-scrollview-interoperable-drag-gesture
swiftui
Last synced: 4 days ago
JSON representation
A custom gesture that allows scroll views to be prioritized. Hitting edges makes the gesture activate.
- Host: GitHub
- URL: https://github.com/fluidgroup/swiftui-scrollview-interoperable-drag-gesture
- Owner: FluidGroup
- License: apache-2.0
- Created: 2024-07-24T16:35:22.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T11:57:41.000Z (4 months ago)
- Last Synced: 2025-03-18T08:03:12.965Z (4 months ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 21.5 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScrollView Interoperable Drag Gesture
A custom gesture that allows scroll views to be prioritized. Hitting edges makes the gesture activate.
Using `UIGestureRecognizerRepresentable`
## Requirements
- iOS18+## Options
- **ScrollView Priority Dragging**
- Prioritizes the dragging gesture on a `ScrollView`, ensuring that scrolling takes precedence.
-- **ScrollView Edge Sticking**
- Prioritizes the dragging once the scroll view's content hits its edge.
-- **Ignore ScrollView Option**
- Ignore dragging gestures on any scroll view.
-![]()