When to use it
Use for one compact label and value pair. Keep charts, timelines, and domain formatting application-owned.
Compose a compact WidgetKit label and value with optional semantic icon.
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 one compact label and value pair. Keep charts, timelines, and domain formatting application-owned.
This API ships in LumenWidgetUI. No application-playground capture is published for this extension-only product yet.
LumenWidgetCompactStat(
label: .verbatim("Duration"),
value: .verbatim("01:15"),
iconSystemName: "timer"
)Reference
The primary shared and platform-specific options exposed by LumenWidgetCompactStat.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | LumenWidgetTextContent | Required | Names the metric. |
| value | LumenWidgetTextContent | Required | Provides the formatted metric value. |
| iconSystemName | String? | nil | Adds a decorative semantic symbol. |
| tone | LumenWidgetTone | accent | Selects the value tone. |
Native behavior
Use for one compact label and value pair. Keep charts, timelines, and domain formatting application-owned.
Label and value combine as one readable metric while native semantic fonts preserve accessibility text scaling.