         }
         
         return false
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+        if !isEditing {
+            collectionView.deselectItem(at: indexPath, animated: true)
+        }
     }
 }
 

    override func setEditing(_ editing: Bool, animated: Bool) {
        super.setEditing(editing, animated: animated)
        
        notificationsView.collectionView.allowsSelection = editing
        notificationsView.collectionView.allowsMultipleSelection = editing
        
        //Reconfigure visible cells to reflect new edit mode.
        //This has a smoother change vs reloadData()
        if #available(iOS 15.0, *) {
            if var snapshot = dataSource?.snapshot() {
                snapshot.reconfigureItems(snapshot.itemIdentifiers)
                dataSource?.apply(snapshot)
            }
        } else {
            notificationsView.collectionView.visibleCells.forEach { cell in

        let selectedViewModels = selectedIndexes.compactMap { viewModels.count > $0 ? viewModels[$0] : nil }
        return selectedViewModels
    }
    
    func deselectAllCells() {
        notificationsView.collectionView.indexPathsForSelectedItems?.forEach {
            notificationsView.collectionView.deselectItem(at: $0, animated: false)
        }
    }
}

// MARK: - NotificationCenterViewModelDelegate
