In group channel list, how to selectively customize colors of view properties in only a specific cell? #115
lookdeceline
announced in
0. Channel list
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
How do I customize the color of view properties of only specific preview cells of a group channel list, and not affect the global theme?
Guide & Snippet
1. Create custom
SBUGroupChannelCell
First create your custom GroupChannelCell that will be used as a table view cell of a table view of
SBUGroupChannelListViewController
.Modify properties according to your needs by overriding the methods of
SBUGroupChannelCell
.In this example, we override
setupStyles()
since we want to change the color of a lable.2. Register your custom cell
The cell type must be registered in
SBUGroupChannelListModule
'sListComponent
. You can register your custom cell type by overridingsetupViews()
method inSBUGroupChannelListModule.List
.3. Set your custom group channel list module's list component type
In order for SendbirdUIKit to be able to use your custom GroupChannelListModuleListComponent, you must hook it in
SBUModuleSet
using the code below.Beta Was this translation helpful? Give feedback.
All reactions