When to use it
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
Review before and after values for the changes the host reports.
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
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
import LumenUI
import SwiftUI
struct PlanChangeReview: View {
var body: some View {
LumenChangeSummary("Review changes", items: [
LumenChangeSummaryItem(id: "owner", label: "Owner", before: "Alice", after: "Bob", changed: true),
LumenChangeSummaryItem(id: "status", label: "Status", before: "Active", after: "Active", changed: false),
LumenChangeSummaryItem(id: "renewal", label: "Renewal", before: "Monthly", after: "Yearly", changed: true)
], summary: "2 changed fields")
}
}Reference
The primary shared and platform-specific options exposed by LumenChangeSummary.
| API | Values or type | Default | Description |
|---|---|---|---|
| items / label / summary | changed fields / heading / count text | required / Changes / none | The host decides what changed and writes the summary text. |
Native behavior
The host decides what changed and writes the summary text. Use it on confirmation and audit screens.
A titled section whose rows read the field, its state, and both values in order.
Shared component