-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ASCollectionView] Move constrainedSizeForNodeAtIndexPath from the DataSource to the Delegate #1740
Conversation
Thanks for this, @tberman! Definitely a needed improvement for an API that hasn't seen much light. |
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
We have to be careful with this change as @appleguy points out these are breaking API changes e.g. in Pinterest we would have to rewrite a couple of places to integrate this change. |
Nothing that looked similar to me. I came across this and felt it was strangely placed when I was implementing a common data source that did some more intelligent animated insertion and diffing and realized that this was implemented on the data source and the delegate, and it felt very out of place, which is what drove the change. Curious on breaking changes what the policy is? |
Agree that it's kind of out of place if you look up a similar method int UITableView / UICollectionView data source and delegate protocols. If we want to integrate the change we would deprecate it in versions < 2.0 and planning to remove all deprecations / breaking API changes with 2.0. Look into the |
…r the datasource method
Hey @tberman can you please rebase the master branch of your fork on top of the latest upstream master and rebase this PR branch on top. We will likely merge that pretty soon. Thanks! |
@tberman: We'd love to merge this into master today. Would it be possible to rebase this? Thanks! |
Small change w/ some associated cleanup, this feels like a delegate method, not a datasource method.