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:
1 parent
d5e16c2926
commit
c93a5e0dff
3 files changed
+10
-2
No files matched your search
@@ -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