CHTCollectionViewWaterfallLayout
CHTCollectionViewWaterfallLayout copied to clipboard
The waterfall (i.e., Pinterest-like) layout for UICollectionView.
How should async downloading images work with waterfall's cgsize? Should we be doing async downloads inside cgsize ?
Hello, I have follows all the precedures to show the header but is not working. Here what I've done: - Added the method viewForSupplementaryElementOfKind - Added the flow.headerHeight property. If...
Greetings!! Amazing project. I was able to get it up and running perfectly, apart from the following issue. I want to subtract 20 from my cell width in `sizeforItemAtIndexPath` method...
`extension BlogPostVC: CHTCollectionViewDelegateWaterfallLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let width = (self.collectionView!.frame.width / 2 ) - 5 // create a cell...
Objective-C: ``` Objective-C - (CGFloat)itemWidthInSectionAtIndex:(NSInteger)section { UIEdgeInsets sectionInset; if ([self.delegate respondsToSelector:@selector(collectionView:layout:insetForSectionAtIndex:)]) { sectionInset = [self.delegate collectionView:self.collectionView layout:self insetForSectionAtIndex:section]; } else { sectionInset = self.sectionInset; } CGFloat width = self.collectionView.bounds.size.width -...
Thread 1: "Attempted to scroll the collection view to an out-of-bounds item (0) when there are only 0 items in section 0. Collection view: ."
I need to use this property that was originally in the UICollectionViewFlowLayout. How can i achieve that result using CHTCollectionViewWaterfallLayout ? Thanks.
`/* com.apple.ibtool.document.errors */ /Users/admin/Downloads/CHTCollectionViewWaterfallLayout-develop/Demo/Objective-C/Demo/en.lproj/MainStoryboard_iPhone.storyboard:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported. [12]`
I have tried so many waterfall layout but nothing helps... everyone suggest your layout and I like it but issue is when image updated then everything mess up. how can...