When to use it
Update statusLabel with the status, such as "Writing…" then "Done". Put message actions in actions and source citations in sources.
Show an assistant reply with one concise status announcement.
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
Update statusLabel with the status, such as "Writing…" then "Done". Put message actions in actions and source citations in sources.
import LumenUI
import SwiftUI
struct ReplyExample: View {
let text: String
let isStreaming: Bool
var body: some View {
LumenStreamMessage(status: isStreaming ? .streaming : .complete,
statusLabel: isStreaming ? "Writing a response…" : "Response complete") {
Text(verbatim: text)
} sources: {
LumenSourceCitation("Release notes", href: "https://lumen.santi020k.com/docs")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenStreamMessage.
| API | Values or type | Default | Description |
|---|---|---|---|
| status / statusLabel / label | stream status / announced text / accessible name | idle / required / Assistant | Update statusLabel with the status, such as "Writing…" then "Done". |
Native behavior
Update statusLabel with the status, such as "Writing…" then "Done". Put message actions in actions and source citations in sources.
Announces the status label once per change; streamed text never announces.
Shared component