When to use it
Use dividers to join the stats into one frame.
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 dividers to join the stats into one frame.
import LumenUI
import SwiftUI
struct StatGroupExample: View {
var body: some View {
LumenStatGroup("Workspace usage", dividers: true) {
LumenStat("Projects", value: "42")
LumenStat("Members", value: "18")
LumenStat("Storage", value: "64%")
LumenStat("Builds", value: "312")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenStatGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / dividers / minimumWidth | group name / joined frame / column width | required / false / 160 | Use dividers to join the stats into one frame. |
Native behavior
Use dividers to join the stats into one frame.
Named group; each stat keeps its own summary.
Shared component