Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM support, exposed the delegate method to the public #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wiencheck
Copy link

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 ☺️

@JuanpaG94
Copy link

JuanpaG94 commented Jan 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants