When to use it
Use for determinate snapshots. Keep timeline updates, background work, widget families, and privacy policy in the application.
Present bounded progress with adaptive text and WidgetKit rendering-mode support.
Apple availability
Import LumenWidgetUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use for determinate snapshots. Keep timeline updates, background work, widget families, and privacy policy in the application.
LumenWidgetProgress(
.verbatim("Session"),
value: 18,
maximum: 25,
valueLabel: .verbatim("18 of 25 minutes")
)Reference
The primary shared and platform-specific options exposed by LumenWidgetProgress.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | LumenWidgetTextContent | Required | Names the progress. |
| value | Double | Required | Clamps to the valid range; nonfinite values resolve to zero. |
| maximum | Double | 1 | Sets the upper bound; invalid totals resolve to one. |
| tone | LumenWidgetTone | accent | Adapts progress color to the WidgetKit rendering mode. |
| showsValue | Bool | true | Shows the formatted value without changing accessibility output. |
| valueLabel | LumenWidgetTextContent? | nil | Overrides the locale-formatted percentage. |
Native behavior
Use for determinate snapshots. Keep timeline updates, background work, widget families, and privacy policy in the application.
Exposes one progress label and value, even when the visible value is hidden. Large text stacks the label and value.