Questions tagged [diffabledatasource]
92 questions
1
vote
0 answers
CollectionView compositional layout with estimated height only shows _UICollectionViewOrthogonalScrollerEmbeddedScrollView
I have a complex layout and most of the time it loads fine. After reloading it a few times though everything disappears (this does not always happen) and I only see an empty collectionView. If I inspect it I can see that there is only empty spacie…

vale
- 1,376
- 11
- 25
1
vote
0 answers
Using Pagination and Pull To Refresh with a UITableViewDiffableDataSource
I have UITableViewController that supports both pagination and pull to refresh.
I am trying to understand the correct way to handle
Replacing all the data - pull to refresh
Append new items - pagination
I have an update method like the below.
When…

Teddy K
- 820
- 1
- 6
- 17
1
vote
1 answer
tvOS 13 DiffableDataSource Invalid parameter not satisfying: itemCount
When launching my tvOS application I'm getting a crash related to the DiffableDataSource: Thread 1: Expection: "Invalid parameter not satisfying: itemCount".
It's occurring on the line dataSource.apply(snapshot).
When trying to run this on Xcode 12…

Charlie Fish
- 18,491
- 19
- 86
- 179
1
vote
2 answers
Getting an 'NSInternalInconsistencyException', reason: 'Invalid section 0.' when doing a search on multiple sections
I am getting an exception when doing a search on multiple section. It occurs when applying a snapshot on the datasource.
Background: I have (pre-defined) sections, and each section has a collection of items. Sections won't appear in the…

arvinq
- 656
- 6
- 12
1
vote
0 answers
Error Domain=NSCocoaErrorDomain Code=134030 "An error occurred while saving." when trying to delete Core Data object via UITableViewDiffableDataSource
What I'm trying to do:
I'm trying to learn how to incorporate Core Data with NSFetchedResultsController and UITableViewDiffableDataSource, to create a simple table UI, that smoothly handles additions and deletions to the table of items in Core…

Hanse00
- 54
- 4
1
vote
0 answers
How to correctly use one-to-many Core Data objects with DiffableDataSource?
I've had trouble getting my Core Data objects with one-to-many relationships to correctly work with DiffableDataSource and could use some pointers.
I have a table view that displays Task objects retrieved from Core Data. I'm using a combination of…

austintt
- 485
- 1
- 4
- 13
1
vote
1 answer
Adding, changing and deleting with a diffeable datasource
Ok, I've got a preliminary working version of a collectionview with a diffable datasource. All is working and I just implemented adding and changing items, and deleting items still to be done. There is little information out there as of current on…

DeveloperSammy
- 167
- 1
- 11
1
vote
0 answers
Tableview within splitview created with diffable data source not swiping to delete
I have a tableview controller that is the master within a split view controller using diffable data sources and I'm trying to figure out an issue I have with it not functioning with swipe to delete options.
At first I tried using this series of…

Frank Foster
- 139
- 9
1
vote
1 answer
Trying to configure UICollectionViewDiffableDataSource
func configureDataSource() {
print("configure dataSource!!!")
dataSource = UICollectionViewDiffableDataSource
(collectionView: storyCollectionView) {
(collectionView: UICollectionView, indexPath: IndexPath,…

RanLearns
- 4,086
- 5
- 44
- 81
0
votes
1 answer
Table view nil Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
I get his Table view nil Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value.
final class SculpturesARViewController: UIViewController {
private func presentSheetView() {
let sheetViewController =…
0
votes
1 answer
NSFetchedResultsController didChangeContentWith uses temporaryID of a successfully saved Object
Context:
I have an app with two Core Data entities (Asset and Group), with a one-to-many relationship (one group contains many assets). The collectionview fetches Group items and uses them as section, the assets being the individual cells. When a…

robinyapockets
- 363
- 5
- 21
0
votes
0 answers
Why am I getting "Could not cast value of type '_NSCoreDataTaggedObjectID'" when using Diffable Data sources?
I'm trying to work with Diffable Data sources and have been hitting constant roadblocks. I have a very simple setup but am getting the "Could not cast value of type '_NSCoreDataTaggedObjectID' when using Diffable Data sources" when trying to apply…

SN81
- 323
- 3
- 13
0
votes
0 answers
When collectionView.reloadItems is called for cell that has configured UICollectionView with DiffableDatasource, the scroll position behaves strangely
I am making an expandable UICollectionViewCell as below.
Currently, I have registered a UICollectionViewCell named ExpandableCell in CollectionView
In order to express the horizontal scroll section and arrow cell within this ExpandableCell, a…

naljin
- 439
- 3
- 10
0
votes
0 answers
How to refresh header view in UITableView DiffableDataSource
I have table view and diffabledatasource with HeaderView that must contains collection view (simple FlowLayout). I need to update header but reloadData() doesn't work. How I can refresh correctly?
I tried to use reloadData()
0
votes
0 answers
iOS Crash Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
I have received the following crash log from Firebase Crashlytics but could not identify the exact reason. It's happing on iOS devices having os version above 15.0. I am using DiffableDataSource for loading collection view and table view.
Crashed:…

Manikandan V. Nair
- 63
- 8