Update FAQs.md

This commit is contained in:
Kriss Bennett
2017-12-04 13:33:53 +00:00
committed by GitHub
parent 964bb5faab
commit 3efc77bd1e
+1 -1
View File
@@ -51,7 +51,7 @@ then get the `MessageType` for this cell through the `MessagesDataSource` method
```Swift
func didTapMessage<T>(in cell: MessageCollectionViewCell<T>) {
guard let indexPath = cell.indexPath(for: cell) else { return }
guard let indexPath = messagesCollectionView.indexPath(for: cell) else { return }
guard let messagesDataSource = messagesCollectionView.messagesDataSource else { return }
let message = messagesDataSource.messageForItem(at: indexPath, in: messagesCollectionView)
}