Reduce reply view snapshot precision because of random imageSource rendering

This commit is contained in:
Stefan Ceriu
2024-03-27 15:24:53 +02:00
committed by Stefan Ceriu
parent 885cd10ba4
commit f9fa3755ad
@@ -316,7 +316,8 @@ struct TimelineReplyView_Previews: PreviewProvider, TestablePreview {
} }
.padding() .padding()
.environmentObject(viewModel.context) .environmentObject(viewModel.context)
.snapshot(delay: 0.2) // Allow member names to load. // Allow member names to load. Reduce precission as the `imageSource` randomly renders slightly differently
.snapshot(delay: 0.2, precision: 0.98)
.previewLayout(.sizeThatFits) .previewLayout(.sizeThatFits)
} }
} }