Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
ActionsApple

Wearable action

Present one at-a-glance, round primary action on watchOS or Wear OS.

Public APILumenWatchActionButtonApple / 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 action

Use for one essential wrist action. Loading preserves the action tone and prevents repeat activation. On watchOS, Reduce Motion or isLuminanceReduced replaces the loading spinner with a static hourglass. Wear OS ambient presentation, haptics, health or safety policy, synchronization, and command handling remain application-owned.

Wearable action rendered in the watchOS simulator Lumen playground
Captured examplewatchOS simulator
swift
LumenWatchActionButton("Start contraction", action: startContraction) {
    TimerLabel()
}

Reference

Public API

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

APIValues or typeDefaultDescription
_ accessibilityLabelLocalizedStringKey or LumenTextContentRequiredNames the essential action. Localize strings on Android; use LumenTextContent.verbatim for resolved runtime text on watchOS.
action() -> VoidRequiredRuns application-owned behavior.
toneLumenWatchTone.brandApplies brand, accent, success, warning, danger, or neutral intent.
dimensionCGFloat120Clamps the round target to 48–180 dp on Wear OS or 44–180 points on watchOS. Non-finite input uses 120.
enabledBooltrueControls action and disabled presentation.
loadingBoolfalseShows busy feedback and blocks activation. Explicitly disabled actions keep their neutral presentation.
loadingAccessibilityValueLumenTextContent.localizedKey("Loading")Names the busy state using application-localized content.
label@ViewBuilder () -> LabelRequiredProvides the visible action content.

Native behavior

Design and accessibility

When to use it

Use for one essential wrist action. Loading preserves the action tone and prevents repeat activation. On watchOS, Reduce Motion or isLuminanceReduced replaces the loading spinner with a static hourglass. Wear OS ambient presentation, haptics, health or safety policy, synchronization, and command handling remain application-owned.

Accessibility

The supplied action label owns the accessible name; decorative content is hidden from assistive technology. Loading exposes a localized busy value and blocks activation. Explicitly disabled actions remain unavailable.

Shared component

Available on other platforms

Android / Compose
Apple docsSwiftUI package