Created
July 3, 2020 08:10
-
-
Save stevencurtis/9c4be327803ea5316b96546b64802407 to your computer and use it in GitHub Desktop.
thedatasource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataSource = UICollectionViewDiffableDataSource | |
<Section, AnyHashable>(collectionView: collectionView) { | |
(collectionView: UICollectionView, | |
indexPath: IndexPath, | |
app: AnyHashable) -> UICollectionViewCell? in | |
return self.sections[indexPath.section].configureCell ( | |
collectionView: collectionView, | |
indexPath: indexPath, | |
item: app, | |
position: indexPath.row) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment