mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Reduce reply view snapshot precision because of random imageSource rendering
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user