SwiftUI App Crashing on iOS 16 and on rest of the devices its working fine.

My app is randomly crashing on the iOS 16 version and working fine on reset of the versions and devices.

Getting this in logs

Swift/ContiguousArrayBuffer.swift:600: Fatal error: Index out of range

This is my crash report:

It looks like a nested ForEach Crash at lines 176 & 76 & 44, where one of these loops exceeds the upper bounds of its collection.

Thanks for replying, I don't have nested ForEach anywhere in the code and also this is crashing only in iPhone 12 iOS 16.0 version

@sri2611 , have you find a solution? I also encountered also the crash message Swift/ContiguousArrayBuffer.swift:600: Fatal error: Index out of range.
I suspect it is either due to WheelPickerStyle or using obsolete NavigationView (instead of NavigationStack)

SwiftUI App Crashing on iOS 16 and on rest of the devices its working fine.
 
 
Q