Drawing out different sections using UICollectionViewCompositionalLayout is quite easy. To do this, we'll be using the SectionProvider constructor for our layout parameter.
Comments (6)
stevenjemm
3 years ago
Absolutely enjoying these! Thanks Brian!
fkeebie
3 years ago
Amazing lesson! I look forward to going further down in your new lessons. Thanks!
Leo Watanabe
3 years ago
Swift UI is the very nice tool !
But I couldn't use
let cellId = "cellId".
this is sad news for me.
Brian Voong
3 years ago
romer_96p@hotmail.com
3 years ago
Bryan i have a Chart composed of a regular UIViewController() and when I pass this file inside the “AppsView” class then my chart shows.. an underneath I’d like to implement your course but I can’t without removing my chart. Can I even work with two different files within the same SwiftUI View when my chart is a regular Swift file :(
Brian Voong
3 years ago
Amin Fadul
3 years ago
Thanks Brian for the brilliant lesson
but how can you achieve self sizing item in this context? I mean you need to pass the number of items in NSCollectionLayoutGroup what if I wanted to show cells in shape of Tags for example.
Brian Voong
3 years ago
Amin Fadul
3 years ago
I tried using estimatedHeight, estimatedWidth but it seems like when you have different sizes for items in one particular group it only takes the size of one item and apply it for all the reming items in that group