nsdiffabledatasourcesnapshot Questions
5
Solved
I'm having difficulty finding the use of NSDiffableDataSourceSnapshot reloadItems(_:):
If the item I ask to reload is not equatable to an item that is already present in the data source, I crash w...
Vig asked 26/9, 2020 at 19:25
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
5
Solved
I'm converting my collection view to new iOS13 UICollectionViewDiffableDataSource... so I need to update cell information on demand.
Here is my code:
let snap = self.diffDataSouce.snapshot
snap?....
Honorary asked 25/11, 2019 at 10:36
2
Solved
I'm implementing a search screen in my app using UITableViewDiffableDataSource. Each cell represents a search hit and highlights the search match in the cell title, kind of like Xcode's Open Quickl...
Mordent asked 10/3, 2020 at 15: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
0
I have a simple UICollectionView with 1 section and 1 item type powered by new iOS 13 UICollectionViewDiffableDataSource.
Even with no changes to data source (identical hashValues), UICollectionVi...
Fogarty asked 5/5, 2020 at 17:36
0
I am trying to use the latest UICollectionViewCompositionalLayout to display paginated data using the UICollectionViewDiffableDataSource . I wanted to show a sticky header above the section that wo...
Ovovitellin asked 23/4, 2020 at 1:6
1
Solved
I am trying to implement a UICollectionViewDiffableDataSource for my collectionView. My code compiles fine, however I keep running into this error the first time I apply a snapshot to it, with the ...
Elishaelision asked 18/11, 2019 at 15:27
1
© 2022 - 2024 — McMap. All rights reserved.