Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
Data displayApple

Data table

Controlled sorting and selection retain hidden IDs and respect disabled rows.

Public APILumenDataTableApple / 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 Data table

Controlled sorting and selection retain hidden IDs and respect disabled rows. Hosts own application state and business actions.

Data table rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulator
swift
LumenDataTable("Packages", columns: columns, rows: rows, sort: $sort, selection: $selectedIds)

Reference

Public API

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

APIValues or typeDefaultDescription
host content and stateAdapter-specific public contractRequiredKeeps application data and behavior in the host.

Native behavior

Design and accessibility

When to use it

Controlled sorting and selection retain hidden IDs and respect disabled rows. Hosts own application state and business actions.

Accessibility

Controlled sorting and selection retain hidden IDs and respect disabled rows.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package