John Snow
John Snow

Reputation: 77

Expandable UICollectionView cells

Is there any way to create an expandable cell in UICollectionView? Here's how it looks like in the UITableView:

enter image description here

Also, the expandable UICollectionViewCell should have a different height(based on the number of rows in a text.)

Upvotes: 1

Views: 964

Answers (1)

Apps Maven
Apps Maven

Reputation: 1420

To create an expandable and collapsible Views using table view header and by creating different sections you can follow these two tutorials. I have also created the same with the help of these tutorials. https://medium.com/ios-os-x-development/ios-how-to-build-a-table-view-with-collapsible-sections-96badf3387d0

https://www.appcoda.com/expandable-table-view/

Upvotes: 1

Related Questions