I had a very similar issue. Not quite the same, but I'll let you know what I did in case it's helpful.
I only had one view in my LazyVStack which had a variable height, and it was at the very top. I put the entire LazyVStack inside another VStack, and moved the one with the variable height to the other VStack. This fixed it because everything inside the LazyVStack then had the same height. For example:
ScrollView {
VStack(spacing: 10) {
VariableHeightView()
LazyVStack(spacing: 10) {
ForEach(items) { item in
FixedHeightView()
}
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: