NSDiffableDataSourceSnapshot

Related tags

Utility swift
Overview

DiffableExample

func applyDataSource(words: [WordItem]) {
    
    var snapshot = dataSource.snapshot()
    snapshot.appendSections([.word])
    snapshot.appendItems(words, toSection: .word)
    
    dataSource.apply(snapshot, animatingDifferences: true, completion: nil)
    
}
You might also like...
Owner
晋先森
Computer Engineer, passionate about Computer Science, specially about Natural Language Processing and Machine Learning. Free Software fan.
晋先森