Closed Velin92 closed 11 months ago
Hi! Prefire uses the library - swift snapshot testing inside. I tried to reproduce using this library and the bug is also reproduced.
As I understand it, the problem is that the library uses SwiftUI.View
wraps in a UIHostingViewController
. I will try to look for an alternative or a workaround to this problem. In the meantime, I recommend bringing this problem to the library repository.
How to reproduce
Just make a very simple form view like this:
The preview that SwiftUI Canvas shows is the following:
The generated previews instead is:
Is very subtle but if you check the edges on the sides of the two rows you will see that the rounding happens PER ROW in the preview snapshot, instead of happening only at the end and at the start of the row like in the SwiftUI preview.
These happens for all views that use the system rows.