# How to showIndicator while loading data in SBUChannelListViewController

**URL:** https://community.sendbird.com/t/how-to-showindicator-while-loading-data-in-sbuchannellistviewcontroller/4191
**Category:** iOS
**Tags:** uikit, bug, ios
**Created:** [March 15, 2022, 1:09pm UTC](https://community.sendbird.com/t/how-to-showindicator-while-loading-data-in-sbuchannellistviewcontroller/4191 "2022-03-15T13:09:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Janakiram\_Palepu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/janakiram_palepu/32/2207_2.png) [@Janakiram\_Palepu](https://community.sendbird.com/u/Janakiram_Palepu)
#### Post date: [March 15, 2022, 1:09pm UTC](https://community.sendbird.com/t/how-to-showindicator-while-loading-data-in-sbuchannellistviewcontroller/4191/1 "2022-03-15T13:09:46Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Yongjun\_Choi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yongjun_choi/32/36_2.png) [@Yongjun\_Choi](https://community.sendbird.com/u/Yongjun_Choi)
#### Post date: [March 17, 2022, 3:18am UTC](https://community.sendbird.com/t/how-to-showindicator-while-loading-data-in-sbuchannellistviewcontroller/4191/2 "2022-03-17T03:18:31Z")

</div>

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.

```auto
    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)
    }

```
