Chat UIKit iOS UIKit v2
Chat UIKit iOS UIKit
Chat UIKit
iOS UIKit
Version 2
Sendbird Chat UIKit v2 for iOS UIKit is no longer supported as a new version is released. Check out our latest Chat UIKit v3

Common resources

Copy link

This page explains how to customize the style of channel list items using the SBUUser, SBUAvailable, SBUStringSet and SBUIconSet classes.


SBUUser

Copy link

The SBUUser class contains information of the CurrentUser. This can be created through SBDUser, SBDMember or Sendbird UIKit for iOS. The properties of the class include the userId, nickname, and profileUrl values. For member types, the isOperator and isMuted properties are also included.


StringSet

Copy link

The SBUStringSet contains the common strings that are used to compose the screen. The following table shows all the elements of the SBUStringSet.

Note : You should modify the stringSet values in advance if you want to make changes to the screen.

Elements of SBUStringSet

Copy link
CategoryPropertyDescription

Common

Cancel

A text for Cancel.

Common

OK

A text for OK.

Common

Retry

A text for Retry to send a failed message or to reconnect.

Common

Save

A text for saving file attachment.

Common

Copy

A text for message copy button.

Common

Delete

A text for message deletion button.

Common

Edit

A text for message edit button.

Common

Remove

A text for remove button for failed messages.

Common

Camera

A text for attachment menu.

Common

PhotoVideoLibrary

A text for attachment menu.

Common

Document

A text for attachment menu.

Common

Invite

A text for Invite.

Common

Loading

A text for loading alert.

Common

Search

A placeholder text in the search textfield.

Alert

Alert_Delete

A text for message deletion alert.

Date format

Date_Yesterday

A date and time format exposed on the screen.

Date format

Date_Year (%d)

A date and time format exposed on the screen.

Date format

Date_Day (%d)

A date and time format exposed on the screen.

Date format

Date_Month (%d)

A date and time format exposed on the screen.

Date format

Date_Hour (%d)

A date and time format exposed on the screen.

Date format

Date_Min (%d)

A date and time format exposed on the screen.

Date format

Date_Ago

A date and time format exposed on the screen.

Date format

Date_On

A date and time format exposed on the screen.

Empty view

Empty_No_Channels

A text used when there is no channel.

Empty view

Empty_No_Messages

A text used when there is no message.

Empty view

Empty_No_Users

A text used when there is no user.

Empty view

Empty_Wrong

A text used when something went wrong.

Empty view

Empty_No_Muted_Members

A text used when there is no muted member.

Empty view

Empty_No_Banned_Members

A text used when there is no banned member.

Empty view

Empty_Search_Result

A text used when there are no search results.

Channel

Channel_Name_Default

The default channel name.

Channel

Channel_Name_No_Members

A text used when there is no member in a channel.

User

User_No_Name

A text used when the user name is not specified.

User

User_Operator

A text used when the user is an operator.

Channel type

ChannelType_Group

A text used when channel type is Group.

Channel type

ChannelType_SuperGroup

A text used when channel type is Supergroup.

Customize the StringSet

Copy link

The following code shows how to customize the StringSet.

SwiftObjective-C
SBUStringSet.OK = {CUSTOM_STRING}
SBUStringSet.Document = {CUSTOM_STRING}

...

IconSet

Copy link

The SBUIconSet contains the icons that are used to compose the screen. The following table shows all the elements of the SBUIconSet.

Note : You should modify the iconSet values in advance if you want to use different icons.

Elements of SBUIconSet

Copy link
IconImageDescription

iconAdd

Add a file

iconBack

Finish a view controller and go back

iconBan

Banned members

iconCamera

A camera app

iconChat

No channels

iconCheckboxChecked

A checked bubble

iconCheckboxUnchecked

An unchecked bubble

iconChevronDown

Go to the latest message

iconChevronRight

Go to a member list

iconClose

Close a file viewer

iconCopy

Copy a message

iconCreate

Create a channel

iconDelete

Delete

iconDocument

Files

iconDone

Single tick

iconDoneAll

Double tick

iconDownload

Download

iconEdit

Edit a message

iconEmojiMore

Show more emojis

iconError

An error in a channel list

iconFileAudio

An audio file

iconFileDocument

A document file

iconFreeze

Freeze a channel

iconGif

A GIF file

iconInfo

Channel information

iconLeave

Leave a channel

iconMembers

Show channel members

iconMessage

No messages

iconModerations

Moderations

iconMore

Show more options

iconMute

Mute notifications in a channel

iconNotifications

Notifications icon in the channel setting

iconNotificationFilled

Turns on notifications by swiping in a channel list

iconNotificationOffFilled

Mute notifications by swiping in a channel list

iconOperator

Channel operator

iconPhoto

Photos library

iconPlay

Play a video

iconPlus

Invite a member in the list

iconQuestion

Error in loading emoji icon

iconRefresh

Retry connection

iconRemove

Clear button in message search textfield

iconReply

An icon used to indicate Reply

iconReplied

An icon indicating that a user replied to another user's message

iconSearch

Search

iconSend

Send a message

iconSpinner

Loading a message or a screen

iconSupergroup

A Supergroup channel

iconThumbnailNone

A blank image

iconUser

The default profile image

Customize the IconSet

Copy link

The following code shows how to customize the IconSet.

SwiftObjective-C
SBUIconSet.iconPhoto = {CUSTOM_IMAGE}
SBUIconSet.iconChat = {CUSTOM_IMAGE}