mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Remove explicit passing of trait collection to setChild/Children
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#import <AsyncDisplayKit/ASLayoutable.h>
|
||||
#import <AsyncDisplayKit/ASAsciiArtBoxCreator.h>
|
||||
|
||||
@class ASTraitCollection;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** A layout spec is an immutable object that describes a layout, loosely inspired by React. */
|
||||
@@ -23,6 +25,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL isMutable;
|
||||
|
||||
@property (nonatomic, strong, nullable) ASTraitCollection *traitCollection;
|
||||
|
||||
- (instancetype)init;
|
||||
|
||||
/**
|
||||
@@ -46,7 +50,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* property that behind the scenes is calling setChild:forIdentifier:.
|
||||
*/
|
||||
- (void)setChild:(id<ASLayoutable>)child;
|
||||
- (void)setChild:(id<ASLayoutable>)child withTraitCollection:(ASTraitCollection *)traitCollection;
|
||||
|
||||
/**
|
||||
* Adds a child with the given identifier to this layout spec.
|
||||
@@ -66,7 +69,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* property that behind the scenes is calling setChild:forIdentifier:.
|
||||
*/
|
||||
- (void)setChild:(id<ASLayoutable>)child forIdentifier:(NSString *)identifier;
|
||||
- (void)setChild:(id<ASLayoutable>)child forIdentifier:(NSString *)identifier withTraitCollection:(ASTraitCollection *)traitCollection;
|
||||
|
||||
/**
|
||||
* Adds childen to this layout spec.
|
||||
@@ -80,7 +82,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* setChild: and setChild:forIdentifier: methods to do something appropriate or to assert.
|
||||
*/
|
||||
- (void)setChildren:(NSArray<id<ASLayoutable>> *)children;
|
||||
- (void)setChildren:(NSArray<id<ASLayoutable>> *)children withTraitCollection:(ASTraitCollection *)traitCollection;
|
||||
|
||||
/**
|
||||
* Get child methods
|
||||
|
||||
Reference in New Issue
Block a user