SwiftUI TableView Selection Filtering

Is there a SwiftUI TableView equivalent to the NSTableViewDelegate method

tableView(_: TableView, selectionIndexesForProposedSelection: IndexSet) -> IndexSet

method? I've a table of items but some of the items should not be selectable.

SwiftUI TableView Selection Filtering
 
 
Q