Skip to main content
CometChatMessageInformation shows one of your messages as a bubble at the top, and its delivery and read receipts below. In a one-to-one chat that is one Read and one Delivered line, dated from the message itself. In a group it is one row per member, as the server returns them, updated live while the sheet is open.
CometChatMessageInformation showing a message and each member's read and delivered times

Where It Fits

It only makes sense for messages you sent: receipts are the sender’s. There is no “Sent” row and no sorting — the rows come in the order the server returns them.

From the Message List

The message list’s Info option opens this sheet for your own messages, with the list’s bubbleFactories, onError and its style’s messageInformationStyle. It passes no text formatters; the sheet makes its own mentions formatter.

Quick Start

The sheet carries its own detents and drag indicator, so any .sheet shows it correctly:
There is no close button: the sheet is swiped away, and onDismiss is called when it goes.

What It Shows

Dates read dd/M/yyyy, h:mm a. A member who has neither read nor received the message shows their name alone.
The bubble is drawn as the message list draws it — always as an outgoing message, with no avatar and no “N replies” line — and does not respond to touches.

Actions and Events

Callback Methods

SDK Events (Real-Time, Automatic)

While the sheet is open, a group member’s new receipt updates their row, and a member not yet listed appears at the top. The one-to-one lines are read from the message, so a read that arrives while the sheet is open shows the next time it opens.

Functionality

The title:
The sheet applies .presentationDetents([.medium, .large]) and the drag indicator itself.

Custom View Slots

bubbleFactories render the message as your list does. bubbleView replaces the bubble inside its container:
Or for every message-information sheet in a subtree. An initialiser argument wins:
textFormatters format the bubble’s text. Leave it nil and the sheet uses one mentions formatter, so a mention reads as a name.

Advanced Methods

Store Access

CometChatMessageInformationStore holds the receipts and listens for new ones. Pass a seeded store to show fixed receipts in a preview — a seeded store never fetches or listens:
A store remembers its last error. Reuse one for another sheet and onError reports that error again when the sheet appears.

Configuration

Pass the title, style and slots as arguments: see Functionality.

Subclassing

CometChatMessageInformation is a View struct. Customise it with its bubble slot, factories and style.

Accessibility

  • A member’s row reads as their name, then “Read date, Delivered date”.
  • The one-to-one lines read “Message read” and “Message delivered”, then the date.
  • The bubble is read, not tapped; with the toolbar hidden it is the sheet’s heading.

Style

CometChatMessageInformationStyle is sparse: set only what you change.
strokeWidth and strokeColor are accepted and change nothing: the system grabber cannot be styled.

Next Steps

Message List

Opens this screen from a message’s Info option

Reaction List

Who reacted to a message

Message Template

Customise how a message’s bubble is drawn

Component Styling

Style every component