Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
Data displayApple

Wearable metric

Present one at-a-glance wearable label, value, and optional detail.

Public APILumenWatchMetricApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component.

Apple Watch · watchOS 9+

Native example

Use Wearable metric

Use for one high-priority value with a short label. Avoid dashboard grids that overload small round screens.

Wearable metric rendered in the watchOS simulator Lumen playground
Captured examplewatchOS simulator
swift
LumenWatchMetric("Duration", value: elapsed, tone: .brand)

Reference

Public API

The primary shared and platform-specific options exposed by LumenWatchMetric.

APIValues or typeDefaultDescription
_ labelLocalizedStringKeyRequiredNames the metric.
valueStringRequiredProvides the formatted value.
detailLocalizedStringKey?nilAdds brief supporting context. Wear OS omits null, empty, or blank detail.
toneLumenWatchTone.neutralApplies brand, accent, success, warning, danger, or neutral value color.

Native behavior

Design and accessibility

When to use it

Use for one high-priority value with a short label. Avoid dashboard grids that overload small round screens.

Accessibility

Combines label, value, and optional detail into one readable metric on watchOS and Wear OS. Keep the formatted value concise and localize the label and detail.

Shared component

Available on other platforms

Android / Compose
Apple docsSwiftUI package