Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
ActionsApple

Command

Named command search, enabled highlight navigation and a usable close path.

Public APILumenCommandApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Command

Hosts own execution and modal presentation. Grouped literal search retains controlled query and highlight; disabled or stale commands cannot execute.

Command rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulator
swift
LumenCommand("Commands", groups: groups, open: $open, query: $query, activeId: $activeId, onSelect: run)

Reference

Public API

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

APIValues or typeDefaultDescription
controlled stateStable records and host stateRequiredRetains host values and emits intentional user changes.

Native behavior

Design and accessibility

When to use it

Hosts own execution and modal presentation. Grouped literal search retains controlled query and highlight; disabled or stale commands cannot execute.

Accessibility

Named command search, enabled highlight navigation and a usable close path.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package