How to showIndicator while loading data in SBUChannelListViewController

sendbird-uikit-ios Version : 2.1.13
iOS Version : 15.3.1

We would like to see a loader while loading the channels in SBUChannelListViewController. I see setLoading function which always send false for showIndicator flag.

Please let me know how to show loader when the channels are getting loaded in UI.

Hi! @Janakiram_Palepu

I think you can call the function anywhere you want to inherit the SBUChannelListViewController.

Below is an example, and I hope you can find the appropriate timing in the app code.

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.tabBarController?.tabBar.isHidden = false
        self.setLoading(true, true)
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        self.tabBarController?.tabBar.isHidden = false
        self.setLoading(false, true)
    }