How to use multiple data types in Diffable datasource?

93 Views Asked by At

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

0

There are 0 best solutions below