Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
Data displayApple

Change summary

Review before and after values for the changes the host reports.

Public APILumenChangeSummaryApple / 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 TV · tvOS 16+Apple Vision · visionOS 1+Apple Watch · watchOS 9+

Native example

Use Change summary

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Change summary rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
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")
    }
}
Apple
A plan change review that strikes through the old owner and renewal values and keeps the unchanged status muted.

Reference

Public API

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

APIValues or typeDefaultDescription
items / label / summarychanged fields / heading / count textrequired / Changes / noneThe host decides what changed and writes the summary text.

Native behavior

Design and accessibility

When to use it

The host decides what changed and writes the summary text. Use it on confirmation and audit screens.

Accessibility

A titled section whose rows read the field, its state, and both values in order.

Shared component

Available on other platforms

React NativeAndroid / Compose Web
Apple docsSwiftUI package