Friday, October 9, 2026
HomeiOS Developmentios - Tips on how to disable mother or father ScrollView scrolling,...

ios – Tips on how to disable mother or father ScrollView scrolling, whereas scrolling nested ScrollView?

[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]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments