diff --git a/AsyncDisplayKit/ASCellNode+Internal.h b/AsyncDisplayKit/ASCellNode+Internal.h deleted file mode 100644 index 5481965995..0000000000 --- a/AsyncDisplayKit/ASCellNode+Internal.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// ASCellNode+Internal.h -// Pods -// -// Created by Max Gu on 2/19/16. -// -// - -#import "ASCellNode.h" - -@interface ASCellNode (Internal) - -@property (nonatomic, assign) BOOL shouldMonitorScrollViewDidScroll; - -@end diff --git a/AsyncDisplayKit/ASCellNode.h b/AsyncDisplayKit/ASCellNode.h index 7f8cc01238..45da0fd1ce 100644 --- a/AsyncDisplayKit/ASCellNode.h +++ b/AsyncDisplayKit/ASCellNode.h @@ -85,6 +85,8 @@ typedef NSUInteger ASCellNodeAnimation; */ @property (nonatomic, weak) id layoutDelegate; +@property (nonatomic, assign, readonly) BOOL shouldMonitorScrollViewDidScroll; + /* * ASCellNode must forward touch events in order for UITableView and UICollectionView tap handling to work. Overriding * these methods (e.g. for highlighting) requires the super method be called. diff --git a/AsyncDisplayKit/ASCellNode.m b/AsyncDisplayKit/ASCellNode.m index 42f5b0b971..7aa83fc9fe 100644 --- a/AsyncDisplayKit/ASCellNode.m +++ b/AsyncDisplayKit/ASCellNode.m @@ -6,7 +6,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -#import "ASCellNode+Internal.h" +#import "ASCellNode.h" #import "ASInternalHelpers.h" #import "ASCollectionView.h" @@ -24,6 +24,7 @@ UIViewController *_viewController; ASDisplayNode *_viewControllerNode; } +@property (nonatomic, assign, readwrite) BOOL shouldMonitorScrollViewDidScroll; @end diff --git a/AsyncDisplayKit/ASCollectionView.mm b/AsyncDisplayKit/ASCollectionView.mm index 35ddd61c22..461fe2e702 100644 --- a/AsyncDisplayKit/ASCollectionView.mm +++ b/AsyncDisplayKit/ASCollectionView.mm @@ -9,7 +9,6 @@ #import "ASAssert.h" #import "ASBatchFetching.h" #import "ASDelegateProxy.h" -#import "ASCellNode+Internal.h" #import "ASCollectionNode.h" #import "ASCollectionDataController.h" #import "ASCollectionViewLayoutController.h" @@ -676,7 +675,6 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell"; for (_ASCollectionViewCell *collectionCell in _cellsForVisibilityUpdates) { ASCellNode *node = [collectionCell node]; if (node.shouldMonitorScrollViewDidScroll) { - NSLog(@"Calling _visibleNodeDidScroll"); [node _visibleNodeDidScroll:scrollView withCellFrame: node.frame]; } }