CometChatReactionList shows who reacted to a message: a strip of tabs — “All” with the
total first, then one per emoji with its count — over the people who reacted. Your own row
reads “You” with “Tap to remove” under it; tapping it removes your reaction. The
message list opens it as a half-height sheet when you
long-press a reaction under a bubble.

Where It Fits
Quick Start
Give it the message and dismiss it when the last reaction is gone:- SwiftUI
- UIKit
background1 on iOS 18–25.Behaviour
- SwiftUI
- UIKit
- The sheet opens on All. Pass
selectedReactionto open on an emoji’s tab instead. - Tapping a tab moves the underline. The rows do not change until you scroll to the end of the list, which loads that tab’s next page.
- The next page loads whenever the last row appears.
- Tapping your own row removes your reaction, then calls
onItemClick. Tapping anyone else’s row only callsonItemClick. A failed removal leaves the row in place, silently. - Reactions by other people while the sheet is open do not update it.
onEmptyfires once when the last reaction is gone;onErroreach time a fetch fails.
Actions and Events
Callback Methods
- SwiftUI
- UIKit
SDK Events (Real-Time, Automatic)
The sheet does not update while it is open: reactions by other people do not change it.Functionality
- SwiftUI
- UIKit
States
- SwiftUI
- UIKit
The strip and its separator stay in every state.
errorText replaces the error text.Custom View Slots
- SwiftUI
- UIKit
Every slot is a parameter and a cascading modifier; an initialiser argument wins. A row slot
receives the Kit’s
ReactedUser — name, emoji, avatarURL and isMe:Hide parts of every reaction list in a subtree:
Advanced Methods
Store Access
- SwiftUI
- UIKit
CometChatReactionListStore holds the tabs, the rows and the state. Each list makes its own;
pass one to observe it, or a seeded one to preview without a session:policy.pageLimit on a store to change the
page size when no builder is given.Configuration
- SwiftUI
- UIKit
Pass the style and the request builder directly: see
style and reactionsRequestBuilder
under Functionality.Subclassing
- SwiftUI
- UIKit
CometChatReactionList is a View struct. Customise it with its slots, modifiers and style.Accessibility
- Each tab is a button that reads “emoji, count reactions”, marked selected when active.
- Each row reads “name, emoji”, plus “Tap to remove” on yours.
- The shimmer reads “Loading reactions, please wait”.
- SwiftUI
- UIKit
Rows built with a slot are read as the slot draws them.
Style
- SwiftUI
- UIKit
CometChatReactionListStyle is sparse: set only what you change.Next Steps
Message List
Opens the sheet from a long-press on a reaction
Message Information
Delivery and read details for a message
Component Styling
Style every component