{"id":20226043,"url":"https://github.com/augustrush/uicollectionview-ardynamicheightlayoutcell","last_synced_at":"2025-04-05T10:09:42.385Z","repository":{"id":32297396,"uuid":"35872342","full_name":"AugustRush/UICollectionView-ARDynamicHeightLayoutCell","owner":"AugustRush","description":"Automatically UICollectionViewCell size calculating.","archived":false,"fork":false,"pushed_at":"2016-06-18T05:21:08.000Z","size":28774,"stargazers_count":564,"open_issues_count":5,"forks_count":86,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-29T09:12:14.912Z","etag":null,"topics":["height","uicollectionview","uicollectionviewcell"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AugustRush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-19T09:24:26.000Z","updated_at":"2024-12-05T05:53:25.000Z","dependencies_parsed_at":"2022-07-08T11:47:04.861Z","dependency_job_id":null,"html_url":"https://github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FUICollectionView-ARDynamicHeightLayoutCell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FUICollectionView-ARDynamicHeightLayoutCell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FUICollectionView-ARDynamicHeightLayoutCell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FUICollectionView-ARDynamicHeightLayoutCell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AugustRush","download_url":"https://codeload.github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["height","uicollectionview","uicollectionviewcell"],"created_at":"2024-11-14T07:15:54.837Z","updated_at":"2025-04-05T10:09:42.366Z","avatar_url":"https://github.com/AugustRush.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UICollectionView+ARDynamicHeightLayoutCell\n\n* An simple category for caculating autolayout UICollectionViewCell size. Automatic manage cell's size cache, automatic invalidate, most improve efficiency.\n\n## Demo gif \n\n\u003cimg src=\"https://github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell/blob/master/gif1.gif\" width=\"320\"\u003e\n\u003cimg src=\"https://github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell/blob/master/gif2.gif\" width=\"320\"\u003e\n\n## Support\n\n* A prototype cell in storyboard\n\n* -registerNib:forCellReuseIdentifier:\n\n* -registerClass:forCellReuseIdentifier:\n\n## Usage\n\nif your cell use autolayout , all you need just to do like this:\n\n#### Fixed width\n\n```\n#import \"UICollectionView+ARDynamicHeightLayoutCell.h\"\n\n-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    return [collectionView ar_sizeForCellWithIdentifier:@\"DynamicHeightCell\" fixedWidth:300 configuration:^(id cell) {\n\n       //configuration your cell\n        FeedModel *feed = self.feeds[indexPath.row];\n        [cell filleCellWithFeed:feed];\n\n    }];\n}\n```\n#### Fixed height\n\n```\n#import \"UICollectionView+ARDynamicHeightLayoutCell.h\"\n\n-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    return [collectionView ar_sizeForCellWithIdentifier:@\"DynamicHeightCell\" fixedHeight:400 configuration:^(id cell) {\n    \t//configuration your cell\n           FeedModel *feed = self.feeds[indexPath.row];\n           [cell filleCellWithFeed:feed];\n\t}\n}\n```\n\n#### Dynamic size\n\n```\n#import \"UICollectionView+ARDynamicHeightLayoutCell.h\"\n\n-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n    return [collectionView ar_sizeForCellWithIdentifier:@\"DynamicHeightCell\" configuration:^(id cell) {\n    \t//configuration your cell\n           FeedModel *feed = self.feeds[indexPath.row];\n           [cell filleCellWithFeed:feed];\n\t}\n}\n```\n\n## Install\n\npod 'UICollectionView-ARDynamicHeightLayoutCell', :git =\u003e 'https://github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell.git'\n\n\n## Release Versions\n\n* v1.0\n\n   add cache for cell size height, improve efficiency（automatic invalidate）\n\n* v0.7 \n\n    add Support for StoryBoard prototype cell\n\n* v0.6 \n\n   fixed Height caculated bug and support Dynamic size cell\n\n* v0.5 \n\n    support to caculate size for UICollectionView Cell\n\n## ToDo\n\n* pre caculate cache\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustrush%2Fuicollectionview-ardynamicheightlayoutcell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugustrush%2Fuicollectionview-ardynamicheightlayoutcell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustrush%2Fuicollectionview-ardynamicheightlayoutcell/lists"}