From 16e7e91d9a462adb2dd46cffa1ef84bccf020884 Mon Sep 17 00:00:00 2001 From: Ashley Arthur Date: Sun, 28 Jan 2018 13:28:59 +0000 Subject: [PATCH] [Documentation] MessagesDisplayDelegate.md Additional Header/Footer Customization hints --- Documentation/MessagesDisplayDelegate.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/MessagesDisplayDelegate.md b/Documentation/MessagesDisplayDelegate.md index dcd3785e..93f30dfb 100644 --- a/Documentation/MessagesDisplayDelegate.md +++ b/Documentation/MessagesDisplayDelegate.md @@ -83,6 +83,8 @@ By default, `messageHeaderView` uses the method `shouldDisplayHeader(for:_:_)` o By default, `messageFooterView` returns `nil`. +In order to return a custom subclass for the header or footer you will need to register the custom cell via `messagesCollectionView.register` and optionally customise `headerViewSize` or `footerViewSize` within the assigned `MessagesLayoutDelegate`. + ### Customizing a TextMessageCell's text color ```Swift