CollectionViewWaterfallLayout icon indicating copy to clipboard operation
CollectionViewWaterfallLayout copied to clipboard

SPM support, exposed the delegate method to the public

Open wiencheck opened this issue 5 years ago • 1 comments

I have added Swift Package Support for this framework and modified the way the delegate is used. I believe it is better to allow any object to adopt the CollectionViewWaterfallLayoutDelegate, not only the object that already conforms to the UICollectionViewDelegate.

I think it allows for better separation of responsibilities and thus cleaner code. Also, creating the layout like this: let layout = CollectionViewWaterfallLayout(delegate: self) is more satisfying ☺️

wiencheck avatar Dec 22 '20 09:12 wiencheck

This repo seems to be abandoned since 2019, but this addition will be really useful for current implementations @ecerney

JuanpaG94 avatar Jan 18 '21 16:01 JuanpaG94