Icon resources
The SBUIconSet
class contains icons that are used to compose views in SwiftUI.
Note : We recommend that you override the values of
SBUIconSet
prior beforeSendbirdSwiftUI
initialization.
Customize the icon set
The following code shows the basic examples of how to customize SBUIconSet
.
Note : The Sendbird Swift UI consists of the Sendbird UIKit as its core. Due to the lifecycle of the SwiftUI, it is not possible to extract an
Image
and set it in the iconSet before the view is drawn. Therefore, iconSet uses aUIImage
to set the image.
Sendbird Chat SwiftUI finds the tint color options from themes to apply to the customized icon image. If you want to ignore tint color options for all customized icon images used in Sendbird Chat SwiftUI, set SBUGlobals.isTintColorEnabledForCustomizedIcon
to false
.
The sizes of all icons are managed by Sendbird Chat SwiftUI with appropriate size options. If you don't want to resize customized icon images, set SBUGlobals.isCustomizedIconResizable
to false
.
All properties of IconSet
The following table shows all properties of SBUIconSet
.
Icon | Image | Description |
---|---|---|
iconAdd | Adds a file. | |
iconBack | Goes back to the previous page after exiting a view controller. | |
iconBan | Indicates banned users. | |
iconCamera | Opens the user's camera app. | |
iconChat | Indicates that there are no channels. | |
iconCheckboxChecked | Indicates that a check box has been selected. | |
iconCheckboxUnchecked | Indicates that a check box hasn't been selected. | |
iconChevronDown | Directs the user to the latest message. | |
iconChevronRight | Directs the user to the member list. | |
iconClose | Closes a file viewer. | |
iconCopy | Copies a message. | |
iconCreate | Creates a channel. | |
iconDelete | Deletes an item. | |
iconDocument | Indicates a file. | |
iconDone | Indicates that a message has been sent by the current user but not necessarily delivered to every member. | |
iconDoneAll | Indicates that a message has been either read or delivered to all members of a channel. | |
iconDownload | Downloads a file to the user's mobile app. | |
iconEdit | Edits a message. | |
iconEmojiMore | Shows more emojis. | |
iconError | Indicates an error in channel list. | |
iconFileAudio | Indicates an audio file. | |
iconFileDocument | Indicates a document file. | |
iconFreeze | Freezes a channel. | |
iconGif | Indicates a | |
iconInfo | Shows channel information. | |
iconLeave | Leaves a channel. | |
iconMembers | Shows channel members. | |
iconMessage | Indicates that there are no messages. | |
iconModerations | Shows Moderation options. | |
iconMore | Shows more options. | |
iconMute | Mutes notifications in a channel. | |
iconNotifications | Indcates the notifications icon in channel settings. | |
iconNotificationFilled | Turns on notifications by swiping the icon in channel list. | |
iconNotificationOffFilled | Mutes notifications by swiping the icon in channel list. | |
iconOperator | Indicates the channel operator. | |
iconPhoto | Indicates the user's photo library. | |
iconPlay | Plays a video file message. | |
iconPlus | Invites a user to a channel from a user list. | |
iconQuestion | Indicates an error in loading emojis. | |
iconRefresh | Retries connection with Sendbird server. | |
iconRemove | Clears the text field in message search bar. | |
iconReply | Replies to a message in the channel. | |
iconReplied | Indicates that a user replied to another user's message. | |
iconSearch | Indicates the message search feature. | |
iconSend | Sends a message to the channel. | |
iconSpinner | Indicates that a message or a screen is loading. | |
iconSupergroup | Indicates a Supergroup channel. | |
iconThumbnailNone | Indicates a blank image. | |
iconUser | Indicates the default profile image of a user. |