diffabledatasource Questions

7

I'm currently working on a simple IOS app using a collection view and diffable datasource. I initalize the everything in the view controller's config and call a reloadView-function every time I up...
Uniformity asked 14/5, 2020 at 18:13

1

I'm using UITableViewDiffableDataSource to render cells, and I wonder how to animate rows granularily. There's a property self.dataSource?.defaultRowAnimation = .fade which apply for all rows ...
Caveman asked 12/3, 2020 at 11:53

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 ...

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

3

Solved

(The question was rewritten after discussing with @AndreasOetjen below. Thanks for his comments.) I ran into an issue with using UITableView with diffable data source. In my app when user modifies...
Bilestone asked 7/4, 2020 at 5:27

1

I run into performance issues with the diffable data source when having a larger data set, around 22,000 items. I am surprised that applying the snapshot takes so much time when animation is ON. Se...

3

I'm looking at DiffableDataSource available in iOS13 (or backported here: https://github.com/ra1028/DiffableDataSources) and cannot figure out how one would support multiple cell types in your coll...

3

Solved

I have a hard time to understand how DiffableDataSource works. I have ViewModel like this struct ViewModel: Hashable { var id: Int var value: String func hash(into hasher: inout Hasher) { has...
Decant asked 8/6, 2020 at 16:52

2

Solved

My app presents an emoji keyboard like Apple's where the emoji are displayed by-category. I render this using a collection view where the categories are sections. If an emoji has been inserted rece...
Rileyrilievo asked 15/6, 2020 at 21:46

4

Solved

How can I stop a diffable data source scrolling the view to the top after applying the snapshot. I currently have this... fileprivate func configureDataSource() { self.datasource = UICollectionVi...
Turbofan asked 7/11, 2020 at 0:28

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...

3

Solved

I am currently facing troubles using UITableViewDiffableDataSource. I would like to give a shot to this new feature, so I went on many tutorials on the net, but none of them seems to answer my iss...
Chadd asked 27/11, 2019 at 14:6

1

Solved

Diffable datasources require specifying a SectionIdentifierType and an ItemIdentifierType and these types have to conform to Hashable Supposedly they must conform to Hashable so that the datasource...
Epp asked 29/4, 2021 at 20:30

3

Solved

I'm updating a UITableViewController to use the new UITableViewDiffableDataSource, I have everything working except Swipe to delete. This is an example of how I use swipe to delete func tableView...
Interflow asked 11/9, 2019 at 23:45

0

What is the correct way of using NSDiffableDataSourceSnapshot and - (void)tableView:(nonnull UITableView *)tableView prefetchRowsAtIndexPaths:(nonnull NSArray<NSIndexPath *> *)indexPaths. It ...
Zapateado asked 15/3, 2021 at 11:9

2

I am using UICollectionViewDiffableDataSource for UICollectionView to display content in multiple sections. I am using Collection View Compositional Layout and Diffable Datasources link which was ...

3

Solved

I've implemented a UICollectionView list with custom a custom UICollectionViewCell and UIContentConfiguration using the new iOS 14 API. I've been following this tutorial: https://swiftsenpai.com/de...
Gobioid asked 24/9, 2020 at 15:14

3

Solved

This is a toy example but it reduces exactly the situation I'm in: class MyDataSource: UITableViewDiffableDataSource<String,String> { var string : String? init(string:String?) { self.stri...
Halt asked 16/2, 2020 at 19:39

1

I was playing around with Compositional Layouts with Diffable DataSource and so far loving it. But all of my endeavors have included a single type of Data Item. What I'm trying to achieve is have t...
Douglassdougy asked 6/4, 2020 at 10:13

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...

0

I have used diffable data source with UITableView for a while and I like it. But today I realized one issue inherent in its design. To use diffable data source, one needs to generate and apply snap...
Risser asked 2/5, 2020 at 15:6

1

WWDC 2019 was really packed with new stuff for iOS and the new data sources for TableViews and CollectionView which is UITableViewDiffableDataSource . I have successfully integrate the above new d...
Infectious asked 22/10, 2019 at 18:31

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 ...
1

© 2022 - 2024 — McMap. All rights reserved.