Can someone explain the behavior of this ScrollView test code -- why I can't scroll to the left and top edges, and why I can scroll beyond the right and bottom edges? And how to fix this. (Note that if we remove VStack the behavior does not change.)
var body: some View {
ScrollView.init([.vertical,.horizontal]) {
VStack {
Text("AAA")
.padding(8)
.frame(width: 1024, height: 1024)
.background(Color.orange)
.border(Color.red)
}
}
.border(Color.blue)
}
In this image is as far to the left and up as I can scroll -- it doesn't scroll to the edges:



