-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix #1275 layouts inconsistency in updateAnimated:completion
of IGListBindingSectionController
#1285
Conversation
…del but not invalidating their layout attributes for out-of-box ListBindingSectionController
Generated by 🚫 Danger |
…ndingSectionController
…/updates in IGListBindingSectionController
Hi, @rnystrom , I have added a experiments bitmask to enable the changes, please review again. |
@lorixx It seems that you are active maintainer now. Can you review this PR and import it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@candance has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Can this PR ready to be merged or any else problem exists? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, the only main feedback I have is around that IGTestDiffingSectionController
is doing too much thing and should not be a one-for-all kind of class, would you mind creating a different SectionController and DataSource for the IGLayoutTestItem dependent use case?
@qhhonx has updated the pull request. Re-import the pull request |
…idateLayoutForUpdates test
03f1704
to
f775b3f
Compare
@qhhonx has updated the pull request. Re-import the pull request |
@lorixx I have accepted your suggestion and implemented it. Please review it again and give some comments if any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lorixx has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks Qinghua!
Changes in this pull request
Issue fixed: #1275
This PR is straintforward solution as mentioned in #1275. When I finished it, I realized that it is not a problem in
IGListCollectionViewLayout Partial Optimization
andIGListBindingSectionController
deserved it. MaybeIGListCollectionViewLayout
is rarely used because of great builtin UICollectionViewFlowLayout or cells in section rarely need changing their sizes in practices.Despite it is not
IGListCollectionViewLayout
's fault, I think it can be more optimized againstinvalidateLayoutWithContext
. I would like to make an another PR to optimize it.Due to this PR just giving a proposed solution, it lacks of adding tests and changing log. When this solution is accepted, I would like to complete these todos.
Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.