Reputation: 77
Is there any way to create an expandable cell in UICollectionView
?
Here's how it looks like in the UITableView
:
Also, the expandable UICollectionViewCell
should have a different height(based on the number of rows in a text.)
Upvotes: 1
Views: 964
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