DrawerView
DrawerView copied to clipboard
Cannot reliably scroll horizontally with nested scrollView
I use the DrawerView
to host my SwiftUI views like so:
VStack{
ScrollView(.vertical){
ScrollView(.horizontal){
AnyView()
}
}
}
Trouble is, unless I scroll perfectly horizontally, the drawer view tries to close/open if my finger moves up or down slightly.
This will even happen when the parent ScrollView(.vertical)
is scrolled to the bottom, meaning I will end up with a collapsed drawer view but the ScrollView(.vertical)
won't be scrolled to the top.