I have a scrollview in macOS SwiftUI, it is scrollable just with scrolling on the view, how ever I am unable to scroll with mouse drag, dragging up or down does not make scrollview scrolled. Should I enable some option to be able to do this? I think in past I had no issue with this, and maybe it is a new thing.
import SwiftUI
struct ContentView: View {
var body: some View {
ScrollView(.vertical, showsIndicators: false) {
MyView()
}
.padding(.horizontal)
}
}
struct MyView: View {
var body: some View {
VStack {
ForEach(0..<20, id: .self) { index in
Rectangle()
.fill(Color.gray)
.frame(height: 100.0)
.cornerRadius(5.0)
}
}
}
}
update:
4