Skip to content

Commit

Permalink
Use highPriorityGesture for drag (#153)
Browse files Browse the repository at this point in the history
highPriorityGesture is required to make dragging the bottom sheet work even when user starts dragging on buttons or other pressable items
  • Loading branch information
juhieta authored Feb 21, 2024
1 parent 7af4bb2 commit 82b93be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ internal extension BottomSheetView {
// Main content
self.mainContent
// Make the main content drag-able if content drag is enabled
.gesture(
// highPriorityGesture is required to make dragging the bottom sheet work even when user starts dragging on buttons or other pressable items

Check warning on line 184 in Sources/BottomSheet/BottomSheetView/BottomSheetView+HelperViews.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Line Length Violation: Line should be 120 characters or less; currently it has 156 characters (line_length)
.highPriorityGesture(
self.configuration.isContentDragEnabled && self.configuration.isResizable ?
self.dragGesture(with: geometry) : nil
)
Expand Down

0 comments on commit 82b93be

Please sign in to comment.