private func applySnapshot() {
var snapshot = SnapshotDetails()
inputSections.forEach {
snapshot.appendSections([$0.section])}
inputSections.forEach { section in
snapshot.appendItems(section.items, toSection: section.section)
}
dataSource.apply(snapshot, animatingDifferences: false)
}
Log: Assertion failure in NSArray<UICollectionViewUpdateItem *> * _Nonnull _UIDiffableDataSourceApplyInsertUpdate(NSObject<_UIDiffableDataSourceUpdate> *__strong _Nonnull, NSMutableOrderedSet *__strong _Nonnull, NSMutableOrderedSet *__strong _Nonnull, _UIDataSourceSnapshotter *__strong _Nonnull, BOOL)(), _UIDiffableDataSourceHelpers.m:654
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Update failed to insert requested items. Please file a bug on UIDiffableDataSource.