mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Added custom image masking
This commit is contained in:
@@ -67,7 +67,11 @@ extension BasicExampleViewController: MessagesDisplayDelegate {
|
||||
|
||||
func messageStyle(for message: MessageType, at _: IndexPath, in _: MessagesCollectionView) -> MessageStyle {
|
||||
let tail: MessageStyle.TailCorner = isFromCurrentSender(message: message) ? .bottomRight : .bottomLeft
|
||||
return .bubbleTail(tail, .curved)
|
||||
if let image = UIImage(named: "bobbly") {
|
||||
return .customImageTail(image, tail)
|
||||
} else {
|
||||
return .bubbleTail(tail, .curved)
|
||||
}
|
||||
}
|
||||
|
||||
func configureAvatarView(_ avatarView: AvatarView, for message: MessageType, at _: IndexPath, in _: MessagesCollectionView) {
|
||||
|
||||
Reference in New Issue
Block a user