SendBirdUIKit IOS help

Need help to figure out how to customize the UI to meet our UI requirements. While we were able to figure out on Android, iOS code on SendBird UIKit seems a bit complex to comprehend.
Screens that we need to customize-

  1. We need to remove the “Leave channel” button from the setting screen attached below.
  2. we need to remove this “Edit” button from the top as we are not allowing users to update channel Name or Channel profile picture.
  3. Need to remove “+” button as we are not allowing anyone to add members to the channel.

Hello @Mehdi_Asgar_Sunasara,

On iOS, you can customize it through the process of initializing the ViewController or by overriding it by inheritance.

  1. You can rebuild the UITableViewDataSource, UITableViewDelegate to implement only the features you want.
    or If you only want to quickly remove the Leave feature, please inherit SBUChannelSettingsViewController and implement the following part.
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return 2
}
  1. Set rightButton in the process of initializing SBUChannelSettingsViewController by inheriting SBUChannelViewController on your own ChannelViewController and overriding the functions below.
open func showChannelSettings() {
    let channelSettingsVC = SBUChannelSettingsViewController(channel: self.channel)
    channelSettingsVC.rightBarButton = nil
    self.navigationController?.pushViewController(channelSettingsVC, animated: true)    
  1. Set rightButton in the process of initializing SBUMemberListViewController by inheriting SBUChannelSettingsViewController on your own ChannelSettingsViewController and overriding the functions below.
open func showMemberList() {
    guard let channel = self.channel else { return }
    let memberListVC = SBUMemberListViewController(channel: channel)
    memberListVC..rightBarButton = nil
    self.navigationController?.pushViewController(memberListVC, animated: true)
}

I’m sorry for the difficulty in using it. However, thank you for the tip-off.
We continue to try to make customization easier.

Ah! And if there is a new issue, please report it to UIKit topics so that you can see it with others.
UIKit topic

Thanks!

1 Like