Make sure range controller listens to node display notifications if absolutely needed

This commit is contained in:
Huy Nguyen
2016-07-07 17:41:58 +07:00
parent c62a4d3e79
commit 312de1a084
3 changed files with 36 additions and 30 deletions

View File

@@ -135,6 +135,11 @@ inline BOOL ASHierarchyStateIncludesRangeManaged(ASHierarchyState hierarchyState
*/
@property (nonatomic, assign) BOOL shouldBypassEnsureDisplay;
/**
* @abstract Checks whether a node should be scheduled for display, considering its current and new interface states.
*/
- (BOOL)shouldScheduleDisplayWithNewInterfaceState:(ASInterfaceState)newInterfaceState;
@end
@interface UIView (ASDisplayNodeInternal)