mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add assertion for ASDisplayNode is layer backed if using ASInterfaceStateForDisplayNode
This commit is contained in:
@@ -12,20 +12,6 @@
|
||||
#import "ASCollectionNode.h"
|
||||
#import "ASTableNode.h"
|
||||
|
||||
/**
|
||||
* Update the range mode for a range controller to a explicitly set range mode until the node that contains the range
|
||||
* controller becomes visible again
|
||||
*
|
||||
* Logic for the automatic range mode:
|
||||
* 1. If there are no visible node paths available nothing is to be done and no range update will happen
|
||||
* 2. The initial range update if the range controller is visible always will be ASLayoutRangeModeCount
|
||||
* (ASLayoutRangeModeMinimum) as it's the initial fetch
|
||||
* 3. The range mode set explicitly via updateCurrentRangeWithMode: will last at least one range update. After that it
|
||||
the range controller will use the explicit set range mode until it becomes visible and a new range update was
|
||||
triggered or a new range mode via updateCurrentRangeWithMode: is set
|
||||
* 4. If range mode is not explicitly set the range mode is variying based if the range controller is visible or not
|
||||
*/
|
||||
|
||||
|
||||
@protocol ASRangeControllerUpdateRangeProtocol <NSObject>
|
||||
|
||||
@@ -48,7 +34,19 @@
|
||||
|
||||
@interface ASRangeController (ASRangeControllerUpdateRangeProtocol) <ASRangeControllerUpdateRangeProtocol>
|
||||
|
||||
/// This is a way for a one way update of range with a given mode.
|
||||
/**
|
||||
* Update the range mode for a range controller to a explicitly set mode until the node that contains the range
|
||||
* controller becomes visible again
|
||||
*
|
||||
* Logic for the automatic range mode:
|
||||
* 1. If there are no visible node paths available nothing is to be done and no range update will happen
|
||||
* 2. The initial range update if the range controller is visible always will be ASLayoutRangeModeCount
|
||||
* (ASLayoutRangeModeMinimum) as it's the initial fetch
|
||||
* 3. The range mode set explicitly via updateCurrentRangeWithMode: will last at least one range update. After that it
|
||||
the range controller will use the explicit set range mode until it becomes visible and a new range update was
|
||||
triggered or a new range mode via updateCurrentRangeWithMode: is set
|
||||
* 4. If range mode is not explicitly set the range mode is variying based if the range controller is visible or not
|
||||
*/
|
||||
- (void)updateCurrentRangeWithMode:(ASLayoutRangeMode)rangeMode;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user