When to use it
Pair it with visible text, or give it a label when it stands alone.
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
Pair it with visible text, or give it a label when it stands alone.
import LumenUI
import SwiftUI
struct StatusDotExample: View {
var body: some View {
VStack(alignment: .leading, spacing: LumenSpacing.md) {
HStack(spacing: LumenSpacing.sm) {
// No label: the visible text names the status, so the dot stays decorative.
LumenStatusDot(tone: .success, pulse: true)
LumenText("Deploys available")
}
HStack(spacing: LumenSpacing.lg) {
LumenStatusDot(tone: .warning, label: "Degraded")
LumenStatusDot(tone: .danger, label: "Offline")
}
}
}
}Reference
The primary shared and platform-specific options exposed by LumenStatusDot.
| API | Values or type | Default | Description |
|---|---|---|---|
| tone / pulse / label | color / animated ring / accessible name | current / false / none | Pair it with visible text, or give it a label when it stands alone. |
Native behavior
Pair it with visible text, or give it a label when it stands alone.
Decorative unless labeled.
Shared component