Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
ActionsApple

Wearable action row

Trigger a compact, full-width action on watchOS and Wear OS.

Public APILumenWatchActionRowApple / 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 row

Use for a compact text action inside native watch scrolling containers. Keep navigation, persistence, and feedback in the application; leading content must be decorative.

Wearable action row rendered in the watchOS simulator Lumen playground
Captured examplewatchOS simulator
swift
import LumenUI
import SwiftUI

struct WatchActionExample: View {
    @State private var saved = false

    var body: some View {
        LumenWatchActionRow("Save session", enabled: !saved, action: { saved = true })
    }
}

Reference

Public API

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

APIValues or typeDefaultDescription
titleNative localized textRequiredNames the action.
actionAction callbackRequiredRuns when enabled.
detailOptional native textnil / nullAdds wrapping supporting text.
enabledBooleantrueDisables interaction and exposes disabled state.
leadingOptional decorative viewEmptyView / nullAdds a supporting icon.

Native behavior

Design and accessibility

When to use it

Use for a compact text action inside native watch scrolling containers. Keep navigation, persistence, and feedback in the application; leading content must be decorative.

Accessibility

Provides one named button target with wrapping text and an exposed disabled state.

Shared component

Available on other platforms

Android / Compose
Apple docsSwiftUI package