-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ASCollectionView] When Resizing, Invalidate Layout After Remeasuring #1931
Conversation
@@ -857,7 +857,7 @@ - (void)layoutSubviews | |||
_nextLayoutInvalidationStyle = ASCollectionViewInvalidationStyleNone; | |||
switch (invalidationStyle) { | |||
case ASCollectionViewInvalidationStyleWithAnimation: | |||
if (!_superPerformingBatchUpdates) { | |||
if (0 == _superBatchUpdateCount) { |
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.
@appleguy @Adlai-Holler What is the opinion about the code style? I personally would prefer _superBatchUpdateCount == 0
, but we should find a way that works for all and the future
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.
For BOOLs I prefer NO == _myBool
so you can immediately see the NO. For all other assignments this "defensive ordering" with constant on the left prevents people from accidentally using a single =, so I think we should standardize on that.
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.
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.
Oh neat!
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.
@Adlai-Holler I understand the value in this style, but for now let's match the prevailing style, which is == NO
One comment but otherwise looks good |
Assuming this passes user testing, it sounds like this should be cherry picked to 6.8 |
This fixes rotation issues @rcancro and I have seen. It is still being tested.