Swiftgram/Source/Private/ASCollectionLayoutState+Private.h
Huy Nguyen 5e13ebac8b ASCollectionLayout improvements (#513)
- During the first layout calculation, measure more than just elements in the visible viewport.
- Remove unnecessary params in `-[ASCollectionLayoutState getAndRemoveUnmeasuredLayoutAttributesPageTableInRect`.]
2017-08-17 15:30:34 +01:00

30 lines
832 B
Objective-C

//
// ASCollectionLayoutState+Private.h
// Texture
//
// Copyright (c) 2017-present, Pinterest, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/ASCollectionLayoutState.h>
#import <AsyncDisplayKit/ASPageTable.h>
NS_ASSUME_NONNULL_BEGIN
@interface ASCollectionLayoutState (Private)
/**
* Remove and returns layout attributes for unmeasured elements that intersect the specified rect
*
* @discussion This method is atomic and thread-safe
*/
- (nullable ASPageToLayoutAttributesTable *)getAndRemoveUnmeasuredLayoutAttributesPageTableInRect:(CGRect)rect;
@end
NS_ASSUME_NONNULL_END