Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Last active June 27, 2020 19:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anupamchugh/8e89244adaed43391ee82e20b4e1f24f to your computer and use it in GitHub Desktop.
let cellRegistration = UICollectionView.CellRegistration<UICollectionViewCell, String> { cell, indexPath, name in
var content = UIListContentConfiguration.cell()
content.text = name
cell.contentConfiguration = content
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment