When to use it
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
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
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
import LumenUI
import SwiftUI
struct ToolActivityExample: View {
let isRunning: Bool
var body: some View {
LumenToolActivity("Search documentation", status: isRunning ? .running : .success,
statusLabel: isRunning ? "Searching…" : "Found 3 pages") {
Text("Query: prompt composer keyboard")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenToolActivity.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / status / statusLabel | summary / tool status / status text | required / queued / required | The host runs the tool and updates status and statusLabel. |
Native behavior
The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.
Summary button with expanded state; status label announced politely.
Shared component