Created
March 12, 2020 19:55
-
-
Save SebastianBoldt/d328cb4a6c7997556e594d6bed03b6ed 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 { | |
func addItems(items: [Item], to section: Section) { | |
var snapshot = dataSource.snapshot() | |
snapshot.appendSections([section]) | |
snapshot.appendItems(items, toSection: section) | |
dataSource.apply(snapshot) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment