Post

Replies

Boosts

Views

Activity

Reply to reloadItems behavior on NSDiffableDataSourceSnapshot
The only way I could fix my issue was to call myCollectionView.reloadData() and then call Apply!!! I had a segmented control and I am switching the data when I switch segments. DispatchQueue.main.async {  [weak self] in self?.collectionView?.reloadData(). //<------ call this!!! and then call apply self?.datasource?.apply(snapshot, animatingDifferences: false, completion: { [weak self] in
Nov ’22