Posts

Post marked as solved
1 Replies
4.1k Views
While converting some table views into collection view lists, I have run into an issue with managing which cells are expected to show a highlighted or selected background when being tapped. In this specific case, the list has a mix of cells where some have a traditional selection appearance and other should not show selection at all, but they should still be able to react to cell selection. The only workaround I have found is to override func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool. Is there a way to do this instead on the cell level?
Posted Last updated
.