I am trying to rotate the header of a TableColumn. I would also like it not being truncated or cropped.
This does not work:
TableColumn(Text("Column Name").rotationEffect(Angle(degrees: 45)), value: \.name))
It creates the error Initializer 'init(_:value:comparator:)' requires that 'some View' conform to 'StringProtocol'.
NSTableViewor create your own table from primitives.customHStack header, such asHStack { Text("Column Name").rotationEffect(.degrees(-45)) }that you add before theTableand useTableColumn("", value: \.name)