When to use it
Pin it to the bottom of the list screen while items are selected.
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
Pin it to the bottom of the list screen while items are selected.
import LumenUI
import SwiftUI
struct SelectionBarExample: View {
@State private var selected: Set<String> = ["brief", "notes", "photo"]
var body: some View {
List(["brief", "notes", "photo"], id: \.self) { Text(verbatim: $0) }
.safeAreaInset(edge: .bottom) {
LumenSelectionBar(count: selected.count, onClear: { selected.removeAll() }) {
LumenButton("Archive", intent: .secondary, size: .sm) {}
LumenButton("Delete", intent: .quiet, tone: .danger, size: .sm) {}
}
.padding(.horizontal, LumenSpacing.lg)
}
}
}Reference
The primary shared and platform-specific options exposed by LumenSelectionBar.
| API | Values or type | Default | Description |
|---|---|---|---|
| count / onClear / label | selected items / clear callback / count text | required / none / {count} selected | Pin it to the bottom of the list screen while items are selected. |
Native behavior
Pin it to the bottom of the list screen while items are selected.
Hidden at zero; count changes are announced politely.
Shared component