I have a FollowVC and FollowCell Setup with collection View. I can display all the datas correctly into my uIcollection view cell using the following code with no problem.
Using Extension in Swift 4
extension UICollectionView { func deselectAllItems(animated: Bool) { guard let selectedItems = indexPathsForSelectedItems else { return } for indexPath in selectedItems { deselectItem(at: indexPath, animated: animated) } } }