Removing ASCellNode+Internal

This commit is contained in:
Max Gu
2016-02-19 14:56:02 -08:00
parent a834382bcb
commit 53cbd643de
4 changed files with 4 additions and 18 deletions

View File

@@ -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

View File

@@ -85,6 +85,8 @@ typedef NSUInteger ASCellNodeAnimation;
*/
@property (nonatomic, weak) id<ASCellNodeLayoutDelegate> 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.

View File

@@ -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

View File

@@ -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];
}
}