You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to add custom footer view on channel list? (UITableViewHeaderFooterView ver.)
Customer request
Please provide a code sample that demonstrates to the customer how to extend the ChannelListViewController to add a custom component to the bottom of the view controller.
Guide & Snippet
The logic below is a custom snippet with a simple example.
Create a CustomChannelListFooterView class that inherits from UITableViewHeaderFooterView.
SBUViewLifeCycle is used for the view life cycle used by SendbirdUIKit. It is not required, so you can configure your view without it if you want.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Customer request
ChannelListViewController
to add a custom component to the bottom of the view controller.Guide & Snippet
The logic below is a custom snippet with a simple example.
Create a
CustomChannelListFooterView
class that inherits fromUITableViewHeaderFooterView
.SBUViewLifeCycle
is used for the view life cycle used by SendbirdUIKit. It is not required, so you can configure your view without it if you want.SBUGroupChannelListModule.List
, inherit from this class to create aCustomGroupChannelModule.List
class.CustomGroupChannelModule.List
class is configured to put aCustomChannelListFooterView
in the tableView footer.SBUModuleSet
.Result
Reference
Beta Was this translation helpful? Give feedback.
All reactions