When to use it
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
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
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
import LumenUI
import SwiftUI
struct ReasoningExample: View {
let isThinking: Bool
var body: some View {
LumenReasoning(isThinking ? "Thinking…" : "Thought for 12 seconds",
status: isThinking ? .streaming : .complete) {
Text("Checked each platform adapter before answering.")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenReasoning.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / status / collapseOnComplete | header text / stream status / close after streaming | required / complete / true | Set status to streaming while reasoning arrives and complete once the answer starts. |
Native behavior
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
Header button with expanded state; reasoning text is never a live region.
Shared component