Skip to content

Instantly share code, notes, and snippets.

@HassanElDesouky
Created August 17, 2019 05:00
Show Gist options
  • Save HassanElDesouky/6895d9028f28f6855ddd9700c64a5b19 to your computer and use it in GitHub Desktop.
Save HassanElDesouky/6895d9028f28f6855ddd9700c64a5b19 to your computer and use it in GitHub Desktop.
extension ViewController: CreateListControllerDelegate {
func didAddList(list: List) {
self.collectionView.performBatchUpdates({
let indexPath = IndexPath(row: lists.count - 1, section: 0)
self.collectionView.insertItems(at: [indexPath])
}, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment