Open benvigier opened 6 years ago
Quick update on this. I managed to achieve the desired result by creating my own CollectionViewFlowLayout for the nested Collection View. I would still love to know whether the same result can be achieved using the (IG)ListCollectionViewLayout. If not, maybe a future version of the framework could allow to specify the desired cell layout at the section controller level.
@benvigier could you provide a sample project so we could play around with the error in stacking cells? I wont have a lot of time to dig into this.
@rnystrom Thanks for the quick response. I just put a quick project together that illustrates the issue. https://github.com/benvigier/UITests
Since I am finally experiencing a bunch of issues with the custom layout I wrote over the weekend, I would really love a solution that works with ListCollectionViewLayout. Thanks again for your help!
New issue checklist
README
and documentationGeneral information
IGListKit
version:Hi IG team,
First of all, thank you for sharing this framework, I've been using it extensively for a few months and it has simplified my life drastically. So far I've always been able to implement the UX I wanted by doing research and looking at the examples you provided, but I finally hit a wall this week.
As illustrated on the drawing below, I need to create a nested section that scrolls horizontally and hosts a bunch of section controllers, each containing 2 cells. What I am not managing to do is have the 2 cells be laid out next to each other horizontally instead of stacked on top of each other, in each (blue) section controller.
I am using IGListkit's ListCollectionViewLayout for the nested collection view, which allows me to have the blue section controllers nicely laid out horizontally as shown on the drawing, but cannot get the 2 cells not to be stacked on top of each other.
I am attaching a simplified version of the code, any guidance on how to this would be most appreciated.
Thanks again!
Simplified code for the blue section controller
Simplified code for the nested section controller
Code for the Embedded CollectionView cell