Skip to content

Commit

Permalink
Fix bottom sheet gesture recognizer conflicts with UITextView (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschpy authored Feb 12, 2025
1 parent f2d12c1 commit 17070da
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ extension BottomSheetInteractionController: UIGestureRecognizerDelegate {
return false
}

if let textView = otherGestureRecognizer.view as? UITextView, textView.isFirstResponder {
return false
}

guard let scrollView = otherGestureRecognizer.view as? UIScrollView else {
return otherGestureRecognizer is UITapGestureRecognizer
}
Expand Down

0 comments on commit 17070da

Please sign in to comment.