Vishal-Singh-Panwar / InfiniteScrolling

Add infinite scrolling to collection view.
MIT License
215 stars 38 forks source link

To need flexible size #8

Open ngdinhkhoa120691 opened 6 years ago

ngdinhkhoa120691 commented 6 years ago

I think we need flexible size to calculate size of cell

public enum LayoutType {
    case flexible(lineSpacing: CGFloat)
}
public protocol InfiniteScrollingBehaviourDelegate: class {
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
}
ngdinhkhoa120691 commented 6 years ago

ex: screen shot 2018-04-04 at 3 59 03 pm

delox commented 6 years ago

@ngdinhkhoa120691 do you have a working example?