I'm making a macOS app using SwiftUI. I have a Table view. I have selection enabled but I can't find any way to customize the selection color - it's always blue.
My table looks something like this:
Table(of: MyObj.self, selection: $selectedID, sortOrder: $sortOrder) {
TableColumn("Column Name") { obj in
// do some custom view
}
. . .
} rows: {
Foreach (model.items) { obj in
TableRow(obj)
}
}