var colors = Appearance.ColorPalette()
colors.chatBackgroundOutgoing = .red
colors.chatBackgroundIncoming = .white
var appearance = Appearance()
appearance.colorPalette = colors
let streamChat = StreamChat(chatClient: chatClient, appearance: appearance)This is beta documentation for Stream Chat IOS SDK v5. For the latest stable version, see the latest version (v4)
.
Message Background Color
If you want to change the standard SwiftUI message bubble colors, update chatBackgroundOutgoing and chatBackgroundIncoming in the ColorPalette when creating StreamChat.
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.