Group Group Group Group Group Group Group Group Group

Beginning Collection Views |

<p>Learn all about using collection views in iOS to build composable and flexible layouts both in code and using Interface Builder. You’ll learn how to implement custom cells, animate changes and work with different types of data sources</p>

This is a companion discussion topic for the original entry at

Is this course relatable to SwiftUI? I am asking because I am creating an app using collection views and I do not know if they are part of SwiftUI.

Nope. Some features work but the diffable data source not. I also asked the author about that since I was struggling to implement it in SwiftUI but as I see he just deleted my question without any answer.

@hastoro11 :weary: Apologies if I did, definitely didn’t intend to! The short answer is no SwiftUI does not have a built in implementation for collection views. My SwiftUI knowledge is somewhat limited but I think you would implement it using an HStack and ForEach views. The official Apple tutorial implements it this way if I remember correctly

Very good class! Pasan is an excellent instructor.

1 Like

Thanks for the great class Pasan.
Can you help me add some features to it, I need to make the collection views sections collapsable and user can expand on click.

Man, you did it! Congratulations, excelente course! I’d like to see you teaching us the same way about TableViews, that is already outdated.

1 Like