pointfreeco/swift-snapshot-testing

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

antonhudz opened this issue · 0 comments

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

  • swift-snapshot-testing version [1.9.0]
  • Xcode [14.1]
  • Swift [5.7]
  • OS: [iOS 16.0]