[Added] .custom case to MessageStyle to customize via closure

This commit is contained in:
Steven Deutsch
2017-09-25 15:51:56 -05:00
parent d5e16c2926
commit c93a5e0dff
3 changed files with 10 additions and 2 deletions
@@ -222,6 +222,8 @@ extension ConversationViewController: MessagesDisplayDelegate {
func messageStyle(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> MessageStyle {
let corner: MessageStyle.TailCorner = isFromCurrentSender(message: message) ? .bottomRight : .bottomLeft
return .bubbleTail(corner, .curved)
// let configurationClosure = { (view: MessageContainerView) in}
// return .custom(configurationClosure)
}
func messageFooterView(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> MessageFooterView? {