Skip to main content

Message Background Color

If you want to change the background of the message bubbles, you can update the messageCurrentUserBackground and messageOtherUserBackground in the ColorPalette on StreamChat setup. These values are arrays of UIColor - if you want to have a gradient background just provide all the colors that the gradient should be consisted of.

var colors = ColorPalette()
colors.messageCurrentUserBackground = [, UIColor.white]
colors.messageOtherUserBackground = [UIColor.white,]

let appearance = Appearance(colors: colors)

streamChat = StreamChat(chatClient: chatClient, appearance: appearance)

Did you find this page helpful?