I'm wondering how to loop through all of my CollectionView Cells that currently visible.
In Objective C, I would achieve this concept seen below:
for(UICollectionView *cell in collectionView.visibleCells){
}
I've tried changing this into swift:
for cell:MyCollectionViewCell in self.collectionView.visibleCells() as cell:MyCollectionViewCell {
}
However I get the following error:
Type 'MyCollectionViewCell' does not conform to protocol 'SequenceType'
How do I loop through all my CollectionViewCells