-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ASCollectionView] Small improvements #407
Merged
nguyenhuy
merged 10 commits into
TextureGroup:master
from
nguyenhuy:HNMissingCollectionElement
Jul 6, 2017
Merged
[ASCollectionView] Small improvements #407
nguyenhuy
merged 10 commits into
TextureGroup:master
from
nguyenhuy:HNMissingCollectionElement
Jul 6, 2017
Commits on Jul 6, 2017
-
Minor refactors in ASCollectionView and its private cell classes
- `_ASCollectionReusableView` and `_ASCollectionViewCell` no longer expose getters for their collection element and cell node properties. This is to make sure that clients can only obtain elements from the visible map which is always the source of truth. - Since the map can return `nil` for an element request, it's much safer to check and avoid adding/removing a nil pointer to an `NSArray`. - Since we use a special way to check whether an object of kind of `_ASCollectionViewCell` or `_ASCollectionReusableView`, based on the assumption that these classes are subclass restricted, I added cast-or-return macros in the header files, closer to where the restrictions are declared.
Configuration menu - View commit details
-
Copy full SHA for fe9e626 - Browse repository at this point
Copy the full SHA fe9e626View commit details -
Configuration menu - View commit details
-
Copy full SHA for e32ad6d - Browse repository at this point
Copy the full SHA e32ad6dView commit details -
Add element and node properties back to _ASCollectionReusableView and…
… _ASCollectionViewCell
Configuration menu - View commit details
-
Copy full SHA for 33a9c4d - Browse repository at this point
Copy the full SHA 33a9c4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd31b05 - Browse repository at this point
Copy the full SHA bd31b05View commit details -
Always mark an element visible even if it is backed by an UIKit / non…
…-_ASCollection* view
Configuration menu - View commit details
-
Copy full SHA for 2bcf410 - Browse repository at this point
Copy the full SHA 2bcf410View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b0dfe0 - Browse repository at this point
Copy the full SHA 8b0dfe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e384428 - Browse repository at this point
Copy the full SHA e384428View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b9f906 - Browse repository at this point
Copy the full SHA 4b9f906View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5f8754 - Browse repository at this point
Copy the full SHA c5f8754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8726c98 - Browse repository at this point
Copy the full SHA 8726c98View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.