I am using messageKit show messages,video and photo in a text format and all the messages are predefined. When user taps on the screen it, should show the next message. I have added gesture recognizer to messageCollectionView but when the user taps on the image, i need to show the image in full screen. But the cell delegate is never called
let gesture = UITapGestureRecognizer(target: self, action: #selector(MessageViewController.tapScreen(_:)))
messagesCollectionView.addGestureRecognizer(gesture)
messagesCollectionView.messagesDataSource = self
messagesCollectionView.messagesLayoutDelegate = self
messagesCollectionView.messagesDisplayDelegate = self
messagesCollectionView.messageCellDelegate = self
I am using the lates messageKit
pod 'MessageKit'
Any idea how i can achieve this?
To further clarify, here is an image of the screen. Clicking anywhere should call the gesture function, but image should call the cellDelegate.