mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Removing ASCellNode+Internal
This commit is contained in:
@@ -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
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user