Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
LayoutApple

Disclosure

Reveal optional native content through a controlled, accessible disclosure trigger.

Public APILumenDisclosureApple / 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 Disclosure

Use for optional supporting detail within the current screen. Keep navigation and multi-step application structure in platform navigation containers.

Disclosure rendered in the iPhone simulator Lumen playground
Verified runtime captureiPhone simulator
swift
LumenDisclosure(
    "Implementation notes",
    isExpanded: $isExpanded
) {
    LumenText("Native details")
}

Reference

Public API

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

APIValues or typeDefaultDescription
titleStringRequiredNames the disclosure trigger.
isExpandedBinding<Bool>RequiredStores the controlled expanded state.
Binding setter(Boolean) -> UnitRequiredUpdates the controlled state.
descriptionString?nilAdds concise supporting copy to the trigger.
isEnabledBooleantrueControls native disabled state.
contentNative contentRequiredProvides content that is mounted only while expanded.

Native behavior

Design and accessibility

When to use it

Use for optional supporting detail within the current screen. Keep navigation and multi-step application structure in platform navigation containers.

Accessibility

The native trigger exposes expanded or collapsed state. Collapsed content leaves the accessibility and focus trees.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package