mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
[Added] .custom case to MessageStyle to customize via closure
This commit is contained in:
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user