Not sure if its related but I had a similar issue that was triggered because I was displaying a Text() element between the ForEach() and the Section() like
ForEach(data) {header in
Text(header)
Section(){
}
}
Once I moved that Text() inside the Section() it worked like a charm.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: