From 17070daa553e58fff4fc53fd3ac7d92b2c149644 Mon Sep 17 00:00:00 2001 From: Fedorov Misha Date: Wed, 12 Feb 2025 12:37:28 +0300 Subject: [PATCH] Fix bottom sheet gesture recognizer conflicts with UITextView (#135) --- .../Interaction/BottomSheetInteractionController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Addons/BottomSheet/Interaction/BottomSheetInteractionController.swift b/Sources/Addons/BottomSheet/Interaction/BottomSheetInteractionController.swift index 13a825f5..849ba27c 100644 --- a/Sources/Addons/BottomSheet/Interaction/BottomSheetInteractionController.swift +++ b/Sources/Addons/BottomSheet/Interaction/BottomSheetInteractionController.swift @@ -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 }