This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Umbrella] ASCollectionView -> ASCollectionNode Migration, Separate Index Spaces #2372
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c67d1f3
Separate dataSource & UIKit index spaces
130b830
Some cleanup
Adlai-Holler ff3eeb9
Remove incorrect comment
Adlai-Holler 70cd643
Tweak the API
7313ca8
Put back a couple methods
84ad640
update example projects (note: ASCollectionView deprecation warnings …
hannahmbanana a86ab5f
change reloadDataWithCompletion:nil --> reloadData
hannahmbanana 372f2ca
Clean up rebase
2444505
Make deprecated numberOfItemsInSection methods optional
5e8d871
Use the right flag
Adlai-Holler 8c82f35
Address nits
Adlai-Holler 7c3c565
update ASDKTube, ASDKgram & ASViewController examples
hannahmbanana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
#import "ASEqualityHelpers.h" | ||
#import "ASDisplayNodeInternal.h" | ||
#import "ASDisplayNode+FrameworkPrivate.h" | ||
#import "ASCollectionView+Undeprecated.h" | ||
#import "ASTableView+Undeprecated.h" | ||
#import <AsyncDisplayKit/_ASDisplayView.h> | ||
#import <AsyncDisplayKit/ASDisplayNode+Subclasses.h> | ||
#import <AsyncDisplayKit/ASDisplayNode+Beta.h> | ||
|
@@ -298,8 +300,16 @@ - (void)handleVisibilityChange:(BOOL)isVisible | |
|
||
ASDisplayNode *owningNode = scrollView.asyncdisplaykit_node; | ||
if ([owningNode isKindOfClass:[ASCollectionNode class]]) { | ||
NSIndexPath *ip = [(ASCollectionNode *)owningNode indexPathForNode:self]; | ||
if (ip != nil) { | ||
[result addObject:@{ @"indexPath" : ip }]; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is sort of unrelated and should have been here before. Really helps logging. |
||
[result addObject:@{ @"collectionNode" : ASObjectDescriptionMakeTiny(owningNode) }]; | ||
} else if ([owningNode isKindOfClass:[ASTableNode class]]) { | ||
NSIndexPath *ip = [(ASTableNode *)owningNode indexPathForNode:self]; | ||
if (ip != nil) { | ||
[result addObject:@{ @"indexPath" : ip }]; | ||
} | ||
[result addObject:@{ @"tableNode" : ASObjectDescriptionMakeTiny(owningNode) }]; | ||
|
||
} else if ([scrollView isKindOfClass:[ASCollectionView class]]) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
This file existed before, but wasn't part of the project for some reason.