Chat UIKit iOS UIKit v3
Chat UIKit iOS UIKit
Chat UIKit
iOS UIKit
Version 3

Unread message counts

Copy link

Unread message counts is a feature that informs users the number of messages they haven’t read in each channel. The unread message count appears in the list component of the SBUGroupChannelListViewController class. The number of unread messages per channel is displayed below the timestamp of the last received message. If the unread message count exceeds 100, it will show as 99+.

Note : In order to use the unread message counts feature, you must first build a channel list-based service and get a channel list view. To learn how to display channel list view, refer to the List channels page.

Customize the UI for unread message counts

Copy link

The UI for unread message counts can be customized through SBUChannelCellTheme in the SBUTheme.

SBUChannelCellTheme

Copy link

The following table shows customizable theme properties for the unread message counts feature.

CategoryPropertyDescription

Unread count

unreadCountBackgroundColor

The background color of the unread message count element.

Unread count

unreadCountFont

The font of the unread message count element.

Unread count

unreadCountTextColor

The text color of the unread message count element.