mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 19:30:09 +00:00
- During the first layout calculation, measure more than just elements in the visible viewport. - Remove unnecessary params in `-[ASCollectionLayoutState getAndRemoveUnmeasuredLayoutAttributesPageTableInRect`.]
30 lines
832 B
Objective-C
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
|