When to use it
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
import LumenUI
import SwiftUI
struct ConversationExample: View {
var body: some View {
VStack(spacing: 12) {
LumenMessage("Can you summarize the release?", from: .user)
LumenMessage(from: .assistant) {
Text("Lumen 6 adds AI surfaces and native parity.")
} avatar: {
LumenAvatar(fallback: "AI", size: .sm)
}
}
}
}Reference
The primary shared and platform-specific options exposed by LumenMessage.
| API | Values or type | Default | Description |
|---|---|---|---|
| from / avatar | sender / optional leading content | assistant / none | Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. |
Native behavior
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
Content stays in reading order; nested links and actions remain reachable.
Shared component