mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge latest master and update Layout headers
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
#import <AsyncDisplayKit/ASLayoutable.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** A layout spec is an immutable object that describes a layout, loosely inspired by React. */
|
||||
@interface ASLayoutSpec : NSObject <ASLayoutable>
|
||||
|
||||
@@ -69,7 +71,7 @@
|
||||
* For good measure, in these layout specs it probably makes sense to define
|
||||
* setChild: and setChild:forIdentifier: methods to do something appropriate or to assert.
|
||||
*/
|
||||
- (void)setChildren:(NSArray *)children;
|
||||
- (void)setChildren:(NSArray<id<ASLayoutable>> *)children;
|
||||
|
||||
/**
|
||||
* Get child methods
|
||||
@@ -83,16 +85,19 @@
|
||||
*/
|
||||
|
||||
/** Returns the child added to this layout spec using the default identifier. */
|
||||
- (id<ASLayoutable>)child;
|
||||
- (nullable id<ASLayoutable>)child;
|
||||
|
||||
/**
|
||||
* Returns the child added to this layout spec using the given identifier.
|
||||
*
|
||||
* @param identifier An identifier associated withe the child.
|
||||
*/
|
||||
- (id<ASLayoutable>)childForIdentifier:(NSString *)identifier;
|
||||
- (nullable id<ASLayoutable>)childForIdentifier:(NSString *)identifier;
|
||||
|
||||
/** Returns all children added to this layout spec. */
|
||||
- (NSArray *)children;
|
||||
- (NSArray<id<ASLayoutable>> *)children;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user