Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 3, 2020 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/9c4be327803ea5316b96546b64802407 to your computer and use it in GitHub Desktop.
Save stevencurtis/9c4be327803ea5316b96546b64802407 to your computer and use it in GitHub Desktop.
thedatasource
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