Open pineapple216 opened 1 year ago
We are also experiencing this exact issue, would be great to have a resolution to this.
Hey! I faced the same issue. Do you have any solutions/updates for it? Thanks.
I've found using .image(drawHierarchyInKeyWindow: true) fixes this issue
I've found using .image(drawHierarchyInKeyWindow: true) fixes this issue
Did not change anything for me... the issue is still there running it with host application and drawHierarchyInKeyWindow
.
Facing the same issue. Any update on this? Thanks!
+1 Facing the same issue
I've found using .image(drawHierarchyInKeyWindow: true) fixes this issue
@JoeManto thank you so much ! This fixed it for me. My context was a little bit different, I was using a Form
with textfields, not a List
That .image(drawHierarchyInKeyWindow: true)
work-around seems to disallow trying to run the snapshot tests in a standalone Swift package. I get the following when trying it in my Swift package:
We're running into the same issue. Any progress on resolving?
Describe the bug The list in a SwiftUI list looks different in snapshot. In the simulator and preview only the top and bottom items have rounded corners, in the snapshot all items have rounded corners.
To Reproduce Zip up a project that reproduces the behavior and attach it by dragging it here. snapshottesting-bug-project.zip
Expected behavior I would expect the screenshots to match the previews and simulator.
Screenshots
The output of the snap shot test, on iPhone 13
The output of the preview, on iPhone 13
Environment
Additional context Add any more context about the problem here.