Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
Data displayApple

Tree grid

Named hierarchical disclosures and labeled cells with inherited disabled state.

Public APILumenTreeGridApple / 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 Tree grid

Hosts format cells and control expansion. Unknown and hidden expansion IDs are retained. Custom interactive cells must honor disabled/read-only context.

Tree grid rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulator
swift
LumenTreeGrid("Status", columns: columns, records: records, expandedIds: $expandedIds)

Reference

Public API

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

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 format cells and control expansion. Unknown and hidden expansion IDs are retained. Custom interactive cells must honor disabled/read-only context.

Accessibility

Named hierarchical disclosures and labeled cells with inherited disabled state.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package