pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.75k stars 570 forks source link

SwiftUI, iOS16: LazyVGrid wrapped into NavigationView is not displayed correctly #689

Open antonhudz opened 1 year ago

antonhudz commented 1 year ago

Describe the bug SwiftUI, iOS16: LazyVGrid wrapped into NavigationView is not displayed correctly when using verifySnapshot. Works correctly on iOS15

To Reproduce SwiftUI, iOS16: Wrap LazyVGrid into NavigationView -> LazyVGrid displayed incorrectly.

FYI: Outside of the NavigationView, LazyVGrid displayed correctly.

verifySnapshot(matching: view, as: .image(layout: .device(config: .iPhoneX)), testName: testName)

Expected behavior LazyVGrid content is displayed correctly when placed in NavigationView on a snapshot

Screenshots Actual Result: actual_result Expected Result:

expected_result

Environment