SwiftUI, iOS16: LazyVGrid wrapped into NavigationView is not displayed correctly
antonhudz opened this issue · 0 comments
antonhudz commented
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:
Expected Result:
Environment
- swift-snapshot-testing version [1.9.0]
- Xcode [14.1]
- Swift [5.7]
- OS: [iOS 16.0]