I have a collection view with 4 sections that each section have a different Item type. How should I achieve this with UICollectionViewDiffableDataSource? I tried AnyHashable and enum associated values but I cant figured it out how should I use it on dataSource implementation (and collectionView.dequeueConfiguredReusableCell).
Asked
Active
Viewed 42 times
1
-
An enum with associated values is typically how this is done. You will need to show us your code. – Rudedog Sep 20 '22 at 16:39
-
https://stackoverflow.com/a/70254267/9086770 – trndjc Sep 20 '22 at 17:49