Skip to main content
View slots swap out one part of a component’s row — the avatar area, the title, the subtitle, the trailing column, or the entire row — while the component keeps its data, paging, selection and real-time updates.

Available View Slots

Section names are concepts; the two toolkits spell some slots differently on purpose.
An item view replaces the whole row, so the other row slots are not asked.

How It Works

Every slot is available two ways: as an initialiser argument returning AnyView, and as a modifier with a @ViewBuilder closure that cascades to every instance of that component below it in the hierarchy.
The closure receives the Kit’s value type — ChatConversation, ChatUser, ChatGroup, ChatGroupMember — not an SDK object. Supply both an argument and a modifier and the argument wins.

Example: Custom Leading View

Replace the avatar with the first letter of the conversation’s name.
Conversations list with a custom leading view replacing the default avatar

A custom leading view (SwiftUI)


Example: Custom Subtitle View

Show “typing…” while someone types, else the last message.
Conversations list with a custom subtitle view replacing the last-message line

A custom subtitle view (SwiftUI)


Replace the Whole Row

Conversations list where itemView replaces the entire row with a custom card layout

itemView (SwiftUI)

Replacing the cell (UIKit)

Subclass the built-in cell and set its class to keep the stock row and change part of it:
UIKit Conversations list rendering a custom cell subclass

Toolbar Overflow Menu

Add your own control to the component’s toolbar. This is separate from the row slots.

Components with View Slots

The message composer has slots of its own — header, footer, send button, auxiliary button and the rich-text toolbar’s trailing buttons — documented on the composer page. The message list’s bubbles are drawn by bubble factories (SwiftUI) and templates (UIKit); see Message Bubble Styling.