func applyDataSource(words: [WordItem]) {
var snapshot = dataSource.snapshot()
snapshot.appendSections([.word])
snapshot.appendItems(words, toSection: .word)
dataSource.apply(snapshot, animatingDifferences: true, completion: nil)
}
jinxiansen / diffableexample Goto Github PK
View Code? Open in Web Editor NEWNSDiffableDataSourceSnapshot
License: MIT License