giulio92 / GLTableCollectionView

Netflix and App Store like UITableView with UICollectionView, written in pure Swift 4.2
MIT License
705 stars 37 forks source link

How to change UICollectionViewCells width for different section of UITableView row. #27

Closed thakurkrishna1991 closed 6 years ago

giulio92 commented 6 years ago

Hello @thakurkrishna1991,

Is not difficult to do so, with the provided classes you could:

  1. return a different CGFloat inside tableView(_ tableView: , heightForRowAt indexPath:) func so that the UITableViewCells will have a different size, the UICollectionViewCell will adjust accordingly
  2. Do exactly the same as above but also try to differentiate the various UICollectionViews by simply using the .tag property and then decide the size of the UICollectionViewCells inside collectionView(_ collectionView: , layout collectionViewLayout: , sizeForItemAt indexPath: )
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.