Created
August 17, 2019 05:00
-
-
Save HassanElDesouky/6895d9028f28f6855ddd9700c64a5b19 to your computer and use it in GitHub Desktop.
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
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