mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
michael's comments
This commit is contained in:
@@ -40,10 +40,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* only require a single child.
|
||||
*
|
||||
* For layout specs that require a known number of children (ASBackgroundLayoutSpec, for example)
|
||||
* a subclass should use this method to set the "primary" child. It can then use setChild:forIdentifier:
|
||||
* to set any other required children. Ideally a subclass would hide this from the user, and use the
|
||||
* setChild:forIdentifier: internally. For example, ASBackgroundLayoutSpec exposes a backgroundChild
|
||||
* property that behind the scenes is calling setChild:forIdentifier:.
|
||||
* a subclass should use this method to set the "primary" child. This is actually the same as calling
|
||||
* setChild:forIdentifier:0. All other children should be set by defining convenience methods
|
||||
* that call setChild:forIdentifier behind the scenes.
|
||||
*/
|
||||
- (void)setChild:(id<ASLayoutable>)child;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user