SwiftUI Horizontal ScrollView item becomes invisible when scrolled in iOS 14.3 but works fine in iOS 13
GeometryReader { geometry in
ZStack (alignment: .center) {
Color(UIColor(hexString: "#F2F2F7"))
.edgesIgnoringSafeArea(.all)
VStack(alignment: .center){
ScrollView (.horizontal, showsIndicators: false) {
LazyHStack {
//contents
ForEach(0..<200)
{ index in
Text(String(index))
}
}}
.frame(maxWidth: .infinity) // << here !!
.frame(height: 100)
}
}}