Skip to content

This is a sample project aiming to achieve a self sizing collection view cell with dynamic height.

License

Notifications You must be signed in to change notification settings

InfiniteDreamz/CollectionView-DynamicHeight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CollectionView-DynamicHeight

This is a sample project aiming to achieve a self sizing collection view cell with dynamic height.

Following are the key points of this demo project:

  1. I have wrapped all the labels in a containerView [UIView] which is having all the 4 constraints w.r.t. the UICollectiionViewCell.
  2. UICollectionViewCell must be created just like auto resizing UITableViewCell satsifying all the auto layout constraints.
  3. Its wroking without assigning any estimated Size for the cell or without using any other method like sizeThatFits() etc.

Requesting PRs and suggestion on the open issues. Feel free to share your feedback. Happy Coding !!

About

This is a sample project aiming to achieve a self sizing collection view cell with dynamic height.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages