uicollectionviewdiffabledatasource Questions

2

My understanding is that UICollectionViewDataSourcePrefetching is built for UICollectionViewDataSource, whereas UICollectionViewDiffableDataSource doesn't seem to have any documentation around pref...

1

I am using UICollectionViewDiffableDataSource to fill UICollectionView with data. My understanding is that DiffableDataSource compares items by using == and then if items are equal it compares hash...

2

I have looked at this question, which is similar: How to deal with empty items section in UICollectionView CompositionalLayout, but the answer there seems to be either leave sections out in the sna...

2

What are the ways in which a UICollectionViewDiffableDataSource header can be reloaded? I have a collection view with a header that displays user details, and rows that display posts, the model is ...

1

As of iOS 14, UICollectionViewDiffableDataSource has a reorderHandlers property. It's demonstrated in some sample code and talked about in WWDC 2020 session on Advances in Diffable Data Sources. Th...
Sherrer asked 4/11, 2021 at 18:32

3

Solved

When dealing with CoreData, NSFetchedResultsController and Diffable Data Source, I always notice that I need to apply DispatchQueue.main.async. For instance, Before applying DispatchQueue.main.asyn...

1

Solved

I've created the following demo view controller to reproduce the issue in a minimal example. Here I'm applying a snapshot of the same data repeatedly to the same collection view using UICollectionV...

0

I have a collection view (using a compositional layout and a diffable data source) that has a segmented control in its header. When the control value changes, the cells update to a different UIColl...

1

Solved

I'm using the UICollectionViewDiffableDataSource to populate my UICollectionView. After receiving a list of items via REST API, I create a new snapshot and apply it like this: DispatchQueue.main.as...

3

Solved

I have a UICollectionViewDiffableDataSourcelike so: var data:UICollectionViewDiffableDataSource<Section, Message>! I define my section header's layout like so: let header = NSCollectionLayou...
1

© 2022 - 2024 — McMap. All rights reserved.