Info:
This is documentation for Stream Chat IOS SDK v4, which is no longer actively maintained. For up-to-date documentation, see the latest version (v5).

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.red, UIColor.white]
colors.messageOtherUserBackground = [UIColor.white, UIColor.red]

let appearance = Appearance(colors: colors)

streamChat = StreamChat(chatClient: chatClient, appearance: appearance)
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat iOS v4: <Your Question>