Commit 91ac3c15 authored by Toby Brennan's avatar Toby Brennan
Browse files

Only highlight if singleSelection action is defined

parent cae1d3f6
Showing with 5 additions and 0 deletions
+5 -0
......@@ -468,6 +468,11 @@ public struct ASTableView<SectionID: Hashable>: UIViewControllerRepresentable, C
}
return indexPath
}
public func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool {
guard !isEditing else { return false }
return parent.sections[safe: indexPath.section]?.dataSource.allowSingleSelection ?? false
}
public func tableView(_ tableView: UITableView, itemsForBeginning session: UIDragSession, at indexPath: IndexPath) -> [UIDragItem]
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment