List seperator in a SwiftUI list doesn't match between snapshot and simulator
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
- swift-snapshot-testing version 1.10.0
- Xcode 14.0.1
- Swift 5.7
- OS: 16
Additional context Add any more context about the problem here.
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