SoySauceLab / CollectionKit

Reimagining UICollectionView
MIT License
4.4k stars 259 forks source link

How to use multiple views in a ArrayDataSource Provider #140

Open CoderMaurice opened 5 years ago

CoderMaurice commented 5 years ago

like this

viewGenerator {
  if data.type = 1 {
      return view1
  }

  if data.type = 2 {
     return  view2
  }

 if data.type = 3 {
    return  view3
 }
}
pockerhead commented 4 years ago

try BoxProvider - https://github.com/SoySauceLab/CollectionKit/issues/118