Home
/
UIKit
/
iOS

Common resources

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


SBUUser

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

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

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

The following code shows how to customize the StringSet.

Objective-C
Swift
Light Color Skin
Copy
SBUStringSet.OK = {CUSTOM_STRING};
SBUStringSet.Document = {CUSTOM_STRING};

...
Light Color Skin
Copy
SBUStringSet.OK = {CUSTOM_STRING}
SBUStringSet.Document = {CUSTOM_STRING}

...

IconSet

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

IconImageDescription

iconAdd

Add icon

Add a file

iconBack

Back icon

Finish a view controller and go back

iconBan

Ban icon

Banned members

iconCamera

Camera icon

A camera app

iconChat

Chat icon

No channels

iconCheckboxChecked

Selected Checkbox icon

A checked bubble

iconCheckboxUnchecked

Unselected Checkbox icon

An unchecked bubble

iconChevronDown

Down Chevron icon

Go to the latest message

iconChevronRight

Right Shevron icon

Go to a member list

iconClose

Close icon

Close a file viewer

iconCopy

Copy icon

Copy a message

iconCreate

Create icon

Create a channel

iconDelete

Delete icon

Delete

iconDocument

Document icon

Files

iconDone

Done icon

Single tick

iconDoneAll

Done All icon

Double tick

iconDownload

Download icon

Download

iconEdit

Edit icon

Edit a message

iconEmojiMore

Emoji more icon

Show more emojis

iconError

Error icon

An error in a channel list

iconFileAudio

Audio File icon

An audio file

iconFileDocument

Document File icon

A document file

iconFreeze

Freeze icon

Freeze a channel

iconGif

Gif icon

A GIF file

iconInfo

Info icon

Channel information

iconLeave

Leave icon

Leave a channel

iconMembers

Members icon

Show channel members

iconMessage

Message icon

No messages

iconModerations

Moderations icon

Moderations

iconMore

More icon

Show more options

iconMute

Mute icon

Mute notifications in a channel

iconNotifications

Notifications icon

Notifications icon in the channel setting

iconNotificationFilled

Notification On icon

Turns on notifications by swiping in a channel list

iconNotificationOffFilled

Notification Off icon

Mute notifications by swiping in a channel list

iconOperator

Operator icon

Channel operator

iconPhoto

Photo icon

Photos library

iconPlay

Play icon

Play a video

iconPlus

Plus icon

Invite a member in the list

iconQuestion

Question icon

Error in loading emoji icon

iconRefresh

Refresh icon

Retry connection

iconRemove

Remove icon

Clear button in message search textfield

iconSearch

Search icon

Search

iconSend

Send icon

Send a message

iconSpinner

Spinner icon

Loading a message or a screen

iconSupergroup

Supergroup icon

A Supergroup channel

iconThumbnailNone

Thumbnail None icon

A blank image

iconUser

User icon

The default profile image

Customize the IconSet

The following code shows how to customize the IconSet.

Objective-C
Swift
Light Color Skin
Copy
SBUIconSet.iconPhoto = {CUSTOM_IMAGE};
SBUIconSet.iconChat = {CUSTOM_IMAGE};
Light Color Skin
Copy
SBUIconSet.iconPhoto = {CUSTOM_IMAGE}
SBUIconSet.iconChat = {CUSTOM_IMAGE}