I have a macOS SwiftUI app with a master-detail split view created with a NavigationView, left column a list and detail view on the right. List content rows are NavigationLinks embedding a custom view with a couple of Text elements.
Is there any way to change the text color on selected rows? I use the pink highlight color on macOS, and (when using light appearance) SwiftUI knows to change the text in some controls to white when they're highlighted (segmented picker, at least.) But I have no idea how to do that in my list rows, where .foregroundColor(Color.primary) keeps the text black regardless of the background color of the row.
This is with Xcode 11.2.1 running on macOS 10.15.2.