All Projects → AugustRush → Uicollectionview Ardynamicheightlayoutcell

AugustRush / Uicollectionview Ardynamicheightlayoutcell

Licence: mit
Automatically UICollectionViewCell size calculating.

Projects that are alternatives of or similar to Uicollectionview Ardynamicheightlayoutcell

Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
Stars: ✭ 3,395 (+507.33%)
Mutual labels:  uicollectionview
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (-26.65%)
Mutual labels:  uicollectionview
Chtcollectionviewwaterfalllayout
The waterfall (i.e., Pinterest-like) layout for UICollectionView.
Stars: ✭ 4,288 (+667.08%)
Mutual labels:  uicollectionview
Functionaltabledata
Declarative UITableViewDataSource implementation
Stars: ✭ 347 (-37.92%)
Mutual labels:  uicollectionview
Lpdmvvmkit
LPDMvvmKit - Elegant MVVM framework in Objective-C.
Stars: ✭ 400 (-28.44%)
Mutual labels:  uicollectionview
Collectionkit
Reimagining UICollectionView
Stars: ✭ 4,153 (+642.93%)
Mutual labels:  uicollectionview
Zcycleview
This is a picture/text infinite-scroll library with UICollectionView, It can be very easy to help you make the banner you want 使用UICollectionView实现常见图片/文字无限轮播,支持自定义cell,自定义pageControl,以及轮播样式
Stars: ✭ 319 (-42.93%)
Mutual labels:  uicollectionview
Scalingcarousel
A super simple carousel view with scaling transitions written in Swift
Stars: ✭ 499 (-10.73%)
Mutual labels:  uicollectionview
Bouncylayout
Make. It. Bounce.
Stars: ✭ 4,035 (+621.82%)
Mutual labels:  uicollectionview
Emptydataset Swift
🎄 DZNEmptyDataSet implement with Swift.A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. DZNEmptyDataSet with Swift.
Stars: ✭ 443 (-20.75%)
Mutual labels:  uicollectionview
Uitableviewdynamiclayoutcacheheight
🖖高性能的自动计算采用 Autolayout 布局的 UITableViewCell 和 UITableViewHeaderFooterView 的高度,内部自动管理高度缓存。
Stars: ✭ 360 (-35.6%)
Mutual labels:  uicollectionview
Stackscrollview
📋 iOS Form UI Builder in Swift (powered by UICollectionView)
Stars: ✭ 382 (-31.66%)
Mutual labels:  uicollectionview
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+642.75%)
Mutual labels:  uicollectionview
Ehhorizontalselectionview
Horizontal table view style controller
Stars: ✭ 346 (-38.1%)
Mutual labels:  uicollectionview
Kddraganddropcollectionview
This component allows for the transfer of data items between collection views through drag and drop
Stars: ✭ 476 (-14.85%)
Mutual labels:  uicollectionview
Livecollections
Automatically perform UITableView and UICollectionView animations between two sets of immutable data. It supports generic data types and is fully thread-safe.
Stars: ✭ 337 (-39.71%)
Mutual labels:  uicollectionview
Owl
A declarative type-safe framework for building fast and flexible lists with UITableViews & UICollectionViews
Stars: ✭ 423 (-24.33%)
Mutual labels:  uicollectionview
Datasources
💾 🔜📱 Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode)
Stars: ✭ 553 (-1.07%)
Mutual labels:  uicollectionview
Carlenscollectionviewlayout
An easy-to-use Collection View Layout for card-like animation.
Stars: ✭ 478 (-14.49%)
Mutual labels:  uicollectionview
Animatedcollectionviewlayout
A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
Stars: ✭ 4,333 (+675.13%)
Mutual labels:  uicollectionview

UICollectionView+ARDynamicHeightLayoutCell

  • An simple category for caculating autolayout UICollectionViewCell size. Automatic manage cell's size cache, automatic invalidate, most improve efficiency.

Demo gif

Support

  • A prototype cell in storyboard

  • -registerNib:forCellReuseIdentifier:

  • -registerClass:forCellReuseIdentifier:

Usage

if your cell use autolayout , all you need just to do like this:

Fixed width

#import "UICollectionView+ARDynamicHeightLayoutCell.h"

-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return [collectionView ar_sizeForCellWithIdentifier:@"DynamicHeightCell" fixedWidth:300 configuration:^(id cell) {

       //configuration your cell
        FeedModel *feed = self.feeds[indexPath.row];
        [cell filleCellWithFeed:feed];

    }];
}

Fixed height

#import "UICollectionView+ARDynamicHeightLayoutCell.h"

-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return [collectionView ar_sizeForCellWithIdentifier:@"DynamicHeightCell" fixedHeight:400 configuration:^(id cell) {
    	//configuration your cell
           FeedModel *feed = self.feeds[indexPath.row];
           [cell filleCellWithFeed:feed];
	}
}

Dynamic size

#import "UICollectionView+ARDynamicHeightLayoutCell.h"

-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return [collectionView ar_sizeForCellWithIdentifier:@"DynamicHeightCell" configuration:^(id cell) {
    	//configuration your cell
           FeedModel *feed = self.feeds[indexPath.row];
           [cell filleCellWithFeed:feed];
	}
}

Install

pod 'UICollectionView-ARDynamicHeightLayoutCell', :git => 'https://github.com/AugustRush/UICollectionView-ARDynamicHeightLayoutCell.git'

Release Versions

  • v1.0

    add cache for cell size height, improve efficiency(automatic invalidate)

  • v0.7

    add Support for StoryBoard prototype cell

  • v0.6

    fixed Height caculated bug and support Dynamic size cell

  • v0.5

    support to caculate size for UICollectionView Cell

ToDo

  • pre caculate cache
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].