/swiftui-scrollview-interoperable-drag-gesture

A custom gesture that allows scroll views to be prioritized. Hitting edges makes the gesture activate.

Primary LanguageSwiftApache License 2.0Apache-2.0

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.