I am trying to make the width of the scrollview span the entire screen, however the width for some reason does not span the entire screen despite using infinity.
ScrollView {
VStack(spacing: 20) {
ForEach(0..<10) {
Text("Item \($0)")
.foregroundColor(.white)
.font(.largeTitle)
.frame(width: .infinity, height: 200.0)
.background(.red)
}
}
}
.frame(width : .infinity , height: 750)