Overview
CometChatMessageBubble is the reusable component which forms different types of message bubbles accordingly.
Components
CometChatMessageBubble contains below component in it.
- Leading View
- Header View
- FooterView
- ContainerView
- BubbleView
Methods
Leading View
The avatar is aUIImageView that specifies an avatar for MessageBubble. You can modify the title using the below methods:
- Swift
Set Avatar Style
User can style the avatar component in message bubble with the help of properties provided by theAvatarStyle.
- Swift
Controller
This method will set the instance of the view controller from which theMessageBubble is presented.
- Swift
Message Bubble Alignment
This method will set the alignment for the **MessageBubble .**This will take the MessageBubbleAlignment as a enum and render the alignment of the MessageBubble.
MessageBubbleAlignment has two cases:
1. Left
2. Right
- Swift
Setup Views
You can pass multiple views in the MessageBubble- Swift
Set MessageBubbleStyle
User can style theMessageBubble with the help of properties provided by the MessageBubbleStyle.
- Swift