uicollectionviewdiffabledatasource Questions
2
My understanding is that UICollectionViewDataSourcePrefetching is built for UICollectionViewDataSource, whereas UICollectionViewDiffableDataSource doesn't seem to have any documentation around pref...
Vituline asked 24/2, 2021 at 6:16
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...
Classicism asked 9/2, 2022 at 8:51
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...
iosuicollectionviewuicollectionviewcompositionallayoutuicollectionviewdiffabledatasourcensdiffabledatasourcesnapshot
Heeley asked 17/1, 2022 at 18:50
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
...
Daubery asked 8/9, 2020 at 8:27
1
How can I use UICollectionViewDiffableDataSource reorderHandlers with a custom compositional layout?
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...
Kite asked 16/6, 2021 at 4:42
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...
Ensnare asked 5/6, 2021 at 2:33
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...
iosuicollectionviewuicollectionviewcompositionallayoutuicollectionviewdiffabledatasourcensdiffabledatasourcesnapshot
Bloodstained asked 14/5, 2021 at 19:4
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...
Inbred asked 3/12, 2020 at 18:23
3
Solved
I have a UICollectionViewDiffableDataSourcelike so:
var data:UICollectionViewDiffableDataSource<Section, Message>!
I define my section header's layout like so:
let header = NSCollectionLayou...
Teryn asked 9/1, 2021 at 0:57
1
© 2022 - 2024 — McMap. All rights reserved.