ScrollView not working properly on macOS?

Hi,

I have a very simple program (see below) with some Views in an HStack, which is within a ScrollView. This works fine on iOS, but on macOS nothing scrolls. Am I missing something? Shouldn't it just scroll?

Code Block
import SwiftUI
struct ContentView: View {
var body: some View {
ScrollView(.horizontal, showsIndicators: true) {
HStack {
ItemView(n: 1)
ItemView(n: 2)
ItemView(n: 3)
ItemView(n: 4)
ItemView(n: 5)
}
}
.frame(minWidth: 350, maxWidth: 800, minHeight: 250, maxHeight: 250, alignment: .center)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
struct ItemView: View {
var n: Int
var body: some View {
Rectangle()
.frame(width: 300, height: 200)
.overlay(Text("# \(n)").foregroundColor(.white))
}
}


I've copied your code as is, into xcode 12.2 beta2 project, running on macos 11 beta, and all works well.
On my side, I've copied your code as is, using macOS 11.2 beta, with XCode 11.7 and XCode 12.3, and it doesn't scroll...

ScrollView not working properly on macOS?
 
 
Q