Message Background Color

If you want to change the standard SwiftUI message bubble colors, update chatBackgroundOutgoing and chatBackgroundIncoming in the ColorPalette when creating StreamChat.

let colors = Appearance.ColorPalette()
colors.chatBackgroundOutgoing = .red
colors.chatBackgroundIncoming = .white

let appearance = Appearance()
appearance.colorPalette = colors

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

These values are single UIColor entries. If you need a gradient or a fully custom bubble style, provide a custom message view instead of relying on the default bubble colors.

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 v5: <Your Question>