Custom Leave Group Page on different View

OS: IOS 14-16

Hello! I currently am making a custom view for my Sendbird group channels, and I wanted to have a button at the button where I can opt to leave the channel if I dont want to be in there anymore. Is there any way I could instantiate a Sendbird Group Channel object using the channelURL and then manually call leaveChannel()?

Thank you!