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) } }}
the culprit was .cornerRadius(20, corners: [.topLeft, .topRight]) changed it to .cornerRadius(20) and it works fine
1.4m articles
1.4m replys
5 comments
57.0k users