When to use it
Use in WidgetKit extensions that need semantic text without linking the complete LumenUI catalog. Keep family-specific layout in the widget.
Render focused WidgetKit text with native scaling and semantic rendering-mode color.
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 in WidgetKit extensions that need semantic text without linking the complete LumenUI catalog. Keep family-specific layout in the widget.
This API ships in LumenWidgetUI. No application-playground capture is published for this extension-only product yet.
LumenWidgetText(
.verbatim(statusTitle),
style: .title,
tone: .accent
)Reference
The primary shared and platform-specific options exposed by LumenWidgetText.
| API | Values or type | Default | Description |
|---|---|---|---|
| content | LumenWidgetTextContent | Required | Preserves localized or verbatim text. |
| style | body · caption · label · metric · title | body | Uses a native semantic font. |
| tone | primary · secondary · accent · success · warning · danger | primary | Adapts color to the WidgetKit rendering mode. |
Native behavior
Use in WidgetKit extensions that need semantic text without linking the complete LumenUI catalog. Keep family-specific layout in the widget.
Localized or verbatim content preserves native Dynamic Type and adapts semantic tone to WidgetKit rendering modes.