Post

Replies

Boosts

Views

Activity

UIDiffableDataSource: Crash, iOS 15.0, Xcode 13.0 Beta. Working fine on 14.0 and 13.0 iOS version
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.
3
0
2.9k
Jul ’21