Skip to content

Commit

Permalink
Merge pull request #269 from Adamant-im/trello.com/c/CxcJke7p
Browse files Browse the repository at this point in the history
  • Loading branch information
just-software-dev authored Jun 12, 2023
2 parents bbfe2e7 + 8bc49f0 commit 9bfccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adamant/Stories/Chat/View/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private extension ChatViewController {
/// This gesture controls the position of the input bar when the keyboard is open and the user swipes it to dismiss.
/// Due to incorrect checks in MessageKit, we manually set the delegate and assign it to our custom chatKeyboardManager object.
/// This ensures proper handling and control of the pan gesture for the input bar.
if let gesture = messagesCollectionView.gestureRecognizers?[13] as? UIPanGestureRecognizer {
if let gesture = messagesCollectionView.gestureRecognizers?[safe: 13] as? UIPanGestureRecognizer {
gesture.delegate = chatKeyboardManager
chatKeyboardManager.panGesture = gesture
}
Expand Down

0 comments on commit 9bfccdf

Please sign in to comment.