I am currently using a List and HStack to hack together a basic multi column Tableview. Fortunately I don't need more advanced features such as column resizing or moving - but scrolling horizontally has proved to be an issue. SwiftUI Lists normally won't scroll sideways so I placed mine in a horizontal scrollbar which does work but only when scrolled from the list 'header' which is separate from the list. Like so:
ScrollView(.horizontal){
VStack{
Rectangle() // 'header' - scroll sideways from here
List() // mousing here won't scroll sideways
}
}
It 'works', but only just. I was hoping that the new LazyVGrid would work better and enable us to create at least a basic multi column tableview but it doesn't seem possible.
Why doesn't Apple give the multi column tableview some love? It's a pretty basic control for many apps on macOS, but seems to have been completely ignored.
ScrollView(.horizontal){
VStack{
Rectangle() // 'header' - scroll sideways from here
List() // mousing here won't scroll sideways
}
}
It 'works', but only just. I was hoping that the new LazyVGrid would work better and enable us to create at least a basic multi column tableview but it doesn't seem possible.
Why doesn't Apple give the multi column tableview some love? It's a pretty basic control for many apps on macOS, but seems to have been completely ignored.