mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASScrollNode] Add .scrollDirection property so that internal content sizing can be easily "unlimited" in the direction of scrolling. (#3001)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASDisplayNode.h>
|
||||
#import <AsyncDisplayKit/ASScrollDirection.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -33,6 +34,18 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL automaticallyManagesContentSize;
|
||||
|
||||
/**
|
||||
* @abstract This property controls how the constrainedSize is interpreted when sizing the content.
|
||||
* if you are using automaticallyManagesContentSize, it can be crucial to ensure that the sizing is
|
||||
* done how you expect.
|
||||
* Vertical: The constrainedSize is interpreted as having unbounded .height (CGFLOAT_MAX), allowing
|
||||
* stacks and other content in the layout spec to expand and result in scrollable content.
|
||||
* Horizontal: The constrainedSize is interpreted as having unbounded .width (CGFLOAT_MAX), ...
|
||||
* Vertical & Horizontal: the constrainedSize is interpreted as unbounded in both directions.
|
||||
* @default ASScrollDirectionVerticalDirections
|
||||
*/
|
||||
@property (nonatomic, assign) ASScrollDirection scrollableDirections;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user