Skip to main content

Overview

CometChatMessageBubble is the reusable component which forms different types of message bubbles accordingly.

Components

CometChatMessageBubble contains below component in it.
  1. Leading View
  2. Header View
  3. FooterView
  4. ContainerView
  5. BubbleView
These are the below list of bubbles used in the CometChatMessageBubble.

Methods

Leading View

The avatar is a UIImageView that specifies an avatar for MessageBubble. You can modify the title using the below methods:

Set Avatar Style

User can style the avatar component in message bubble with the help of properties provided by the AvatarStyle.

Controller

This method will set the instance of the view controller from which the MessageBubble is presented.

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

Setup Views

You can pass multiple views in the MessageBubble

Set MessageBubbleStyle

User can style the MessageBubble with the help of properties provided by the MessageBubbleStyle.