iOS
UIKit Common Resources

Common Resources

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


SBUUser

The SBUUser is a class that contains information of the CurrentUser and the SBUUser created directly in UIKit for iOS. The properties of the class include the userId, nickname, and profileUrl values. The userId must be specified and, when the nickname is empty, the property value follows the value of the userId.


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.

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

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

Channel

Channel_Name_Default

The default channel name

Channel

Channel_Name_No_Members

A text used when there is no member in a channel

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.

Icon nameImageDescription

iconActionLeave

iconActionLeave

Leave channel by swiping

iconActionNotificationOff

iconActionNotificationOff

Mute notifications by swiping in a channel list

iconActionNotificationOn

iconActionNotificationOn

Turns on notifications by swiping in a channel list

iconAdd

iconAdd

Add a file

iconBack

iconBack

Finish a view controller and go back

iconCamera

iconCamara

A camera app

iconChat

iconChat

No channels

iconCheckbox

iconCheckbox

A checked bubble

iconCheckboxOff

iconCheckboxOff

An unchecked bubble

iconChevronDown

iconChevronDown

A new message tooltip

iconClose

iconClose

Close a file viewer

iconCopy

iconCopy

Copy a message

iconCreate

iconCreate

Create a channel

iconDelete

iconDelete

Delete

iconDelivered

iconDelivered

Message delivered

iconDocument

iconDocument

Files

iconDownload

iconDownload

Download

iconEdit

iconEdit

Edit a message

iconError

iconError

An error in a channel list

iconFailed

iconErrorFailed

Message status error

iconFileAudio

iconFileAudio

An audio file

iconFileDocument

iconFileDocument

A document file

iconGif

iconGif

A GIF file

iconInfo

iconInfo

Channel information

iconLeave

iconLeave

Leave channel

iconMembers

iconMembers

Channel members

iconMute

iconMute

Mute notifications in a channel for the Light theme

iconNotifications

iconNotifications

Notifications

iconPhoto

iconPhoto

Photos library

iconPlay

iconPlay

Play a video

iconPlus

iconPlus

Invite a member in the list

iconRead

iconRead

Message read

iconRefresh

iconRefresh

Retry connection

iconSend

iconSend

Send a message

iconSent

iconSent

Message sent

iconShevronRight

iconShevronRight

Go to a member list

iconSpinnerLarge

iconSpinnerLarge

Loading a message

iconSpinnerSmall

iconSpinnerSmall

Loading a screen

iconThumbnailLight

iconThumbnailLight

A blank image

iconUser

iconUser

The default profile image

Customize the StyleSet

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}