From 3efc77bd1edd2f22a52f2dfb558d22d128774575 Mon Sep 17 00:00:00 2001 From: Kriss Bennett Date: Mon, 4 Dec 2017 13:33:53 +0000 Subject: [PATCH] Update FAQs.md --- Documentation/FAQs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/FAQs.md b/Documentation/FAQs.md index 05ca1070..2bfa657f 100644 --- a/Documentation/FAQs.md +++ b/Documentation/FAQs.md @@ -51,7 +51,7 @@ then get the `MessageType` for this cell through the `MessagesDataSource` method ```Swift func didTapMessage(in cell: MessageCollectionViewCell) { - 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) }