Post

Replies

Boosts

Views

Activity

Reply to VStack within ScrollView on macOS 15.2 makes bottom area unclickable
though set height for scrollview works, but if wrapped in a GeometryReader, bug reappear. var body: some View { // if remove this, second button can be tapped GeometryReader { _ in ScrollView(.horizontal) { VStack { Spacer() // this button is clickable Button("foo") { print("foo") showFoo.toggle() } // this button can't be clicked Button("bar") { print("bar") showBar.toggle() } if showFoo { Text("Foo") } if showBar { Text("Bar") } } } .frame(height: 200) } }
16h