How to customize MessageInputView's colors in Open Channels without affecting the global theme? #126
lookdeceline
announced in
1. Chatting in a channel
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Customer Request
How to modify the below properties of MessageInputView for an Open Channel without affecting the global theme?
Guide and Snippet
In order to the customize the above styles of a MessageInputView only for open channels without affecting the global theme, you need to create a custom
SBUOpenChannelModule.Input
that uses your customSBUMessageInputView
. Then you need to tell SendbirdUIKit to use your custom open channel module input.step 1. Create a custom
SBUOpenChannelModule.Input
that uses your customSBUMessageInputView
.step 2. Then tell SendbirdUIkit to use your custom
LiveOpenChannelInput
by plugging it inSBUModuleSet
.This code must run before your Live channel is presented. An example of a good place to do so is
AppDelegate.swift
.Result
The above code lets you modify the default style of MessageInputView (the first image below) to the customized style of MessageInputView (the second image below) without affecting the global theme.
Beta Was this translation helpful? Give feedback.
All reactions