#Preview("Trip") { TripView(status: .onTime) .previewUserStory(.trip) } #Preview("Trip delayed") { TripView(status: .delayed(minutes: 45, departure: "10:25")) .previewUserStory(.trip) .previewState(.delayed) }
Snapshot tests, generated
The build plugin writes a test for each preview and compares it with the reference image on the devices you pick. A moved pixel fails CI, not the release.







