[ad_1]
I’ve a nested horizontal ScrollView inside a vertical ScrollView.
ScrollView(.vertical) {
VStack {
ScrollView(.horizontal) {
HStack {
Shade.purple.body(width: 500, top: 500)
Shade.inexperienced.body(width: 500, top: 500)
Shade.brown.body(width: 500, top: 500)
}
}
Shade.purple.body(top: 500)
Shade.inexperienced.body(top: 500)
Shade.brown.body(top: 500)
}.body(maxWidth: .infinity)
}
Whereas scrolling the nested ScrollView the scrolling conduct will not be so easy, due to the mother or father ScrollView. Is it doable to disable scrolling of the mother or father ScrollView whereas scrolling the nested ScrollView?
[ad_2]
