# SendBirdUI UIKit - ChannelsListViewController

**URL:** <https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397>\
**Category:** Sendbird Chat UIKit\
**Tags:** ios, uikit, bug\
**Created:** [December 9, 2020, 8:34am UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397 "2020-12-09T08:34:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minon\_Weerasinghe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/minon_weerasinghe/32/132_2.png) [@Minon\_Weerasinghe](https://community.sendbird.com/u/Minon_Weerasinghe)\
**Post date:** [December 9, 2020, 8:34am UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397/1 "2020-12-09T08:34:24Z")

</div>

SendBirdUIKit 1.2.9  
SendBirdSDK 3.0.208

I cannot override the method

```
override func leaveChannel(_ channel: SBDGroupChannel, completionHandler: ((Bool) -> Void)? = nil) {}

```

I get the following error:  
**overriding non-open instance method outside of its defining module**

I have the channels list view controller subclassed as follows  
class ChannelsListViewController: SBUChannelListViewController{}

---

<div class="post-metadata">

**Author:** ![Woo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/woo/32/125_2.png) [@Woo](https://community.sendbird.com/u/Woo)\
**Post date:** [December 9, 2020, 8:59am UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397/2 "2020-12-09T08:59:37Z")

</div>

Hello @Minon_Weerasinghe leaveChannel method is public not open at the moment. May I know why do you want to override that method?

---

<div class="post-metadata">

**Author:** ![Minon\_Weerasinghe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/minon_weerasinghe/32/132_2.png) [@Minon\_Weerasinghe](https://community.sendbird.com/u/Minon_Weerasinghe)\
**Post date:** [December 9, 2020, 9:13am UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397/3 "2020-12-09T09:13:32Z")

</div>

Hey @Woo thanks for your reply.  
I want to over ride the current behaviour when it comes to leaving a channel.  
First thing I want to do is to show an alert asking the user to confirm that they want to leave the chat and second thing is that the leaving the channel needs to happen on the server level using the platform API (this has already been implemented on our backend).

---

<div class="post-metadata">

**Author:** ![Woo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/woo/32/125_2.png) [@Woo](https://community.sendbird.com/u/Woo)\
**Post date:** [December 9, 2020, 1:46pm UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397/4 "2020-12-09T13:46:30Z")

</div>

@Minon_Weerasinghe thanks for letting me know your use case! Due to current progress on open channel feature, I don’t think I can patch this right away. However, our next major release with open channel will be within a couple weeks, so I will make sure this method to be open on our next release.

---

<div class="post-metadata">

**Author:** ![Minon\_Weerasinghe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/minon_weerasinghe/32/132_2.png) [@Minon\_Weerasinghe](https://community.sendbird.com/u/Minon_Weerasinghe)\
**Post date:** [December 9, 2020, 9:18pm UTC](https://community.sendbird.com/t/sendbirdui-uikit-channelslistviewcontroller/1397/5 "2020-12-09T21:18:39Z")

</div>

Thank you. It’s actually group channel, not open channel.
