When to use it
Use above a native section or collection. Keep actions compact and directly related to the section.
Identify a native section with optional supporting copy, count, and trailing actions.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use above a native section or collection. Keep actions compact and directly related to the section.
LumenSectionHeader(
"Workspaces",
subtitle: "Recently used",
count: "4"
) {
LumenButton("Add", intent: .quiet, size: .sm, action: addWorkspace)
}Reference
The primary shared and platform-specific options exposed by LumenSectionHeader.
| API | Values or type | Default | Description |
|---|---|---|---|
| title | LocalizedStringKey | Required | Names the section. |
| subtitle | LocalizedStringKey? | nil | Adds supporting context. |
| count | String? | nil | Shows an optional count badge. |
| actions | @ViewBuilder () -> Actions | EmptyView | Provides trailing section actions. |
Native behavior
Use above a native section or collection. Keep actions compact and directly related to the section.
The section identity, optional count, and actions remain a contained group while actions preserve their own labels.
Shared component