If I put multiple horizontal ScrollViews inside a List they disappear when scrolling. Here is an example:
Here is the code to reproduce the issue:
struct ContentView: View {
var body: some View {
List {
ForEach(0...100, id: \.self) { _ in
ScrollView(.horizontal) {
HStack {
Rectangle().frame(width: 100, height: 100)
Rectangle().frame(width: 100, height: 100)
Rectangle().frame(width: 100, height: 100)
}
}
}
}
}
}
I am using iOS 13.3. Adding frames to the ScrollView or HStack did not help, unfortunately. Does anyone know a way to fix this?

ScrollViewinstead ofList- no this issue (and other known List-based issue)Listis much better for performance if it has many items. Furthermore, I cannot style aScrollViewlike aList(GroupedListStyle()). So just using aScrollViewis not a real solution for me.