Answers for "how to deselect all cells in tableview swift"

0

deselect all cell in collectionview

extension UICollectionView {

    func deselectAllItems(animated: Bool) {
        guard let selectedItems = indexPathsForSelectedItems else { return }
        for indexPath in selectedItems { deselectItem(at: indexPath, animated: animated) }
    }
}
Posted by: Guest on July-17-2020

Code answers related to "how to deselect all cells in tableview swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language