mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Layout] Rename ASLayoutable to ASLayoutElement (#2290)
* [Layout API] Rename ASLayoutable to ASLayoutElement * arg * fix wrapperWithLayoutElement * [Layout API] Rename ASLayoutable to ASLayoutElement * arg * address Michael's comments * Remove ASLayoutValidation files that were deleted on master since this diff was created.
This commit is contained in:
@@ -13,22 +13,22 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
Lays out a single layoutable child, then lays out a background layoutable instance behind it stretched to its size.
|
||||
Lays out a single layoutElement child, then lays out a background layoutElement instance behind it stretched to its size.
|
||||
*/
|
||||
@interface ASBackgroundLayoutSpec : ASLayoutSpec
|
||||
|
||||
/**
|
||||
* Background layoutable for this layout spec
|
||||
*/
|
||||
@property (nullable, nonatomic, strong) id<ASLayoutable> background;
|
||||
@property (nullable, nonatomic, strong) id<ASLayoutElement> background;
|
||||
|
||||
/**
|
||||
* Creates and returns an ASBackgroundLayoutSpec object
|
||||
*
|
||||
* @param child A child that is laid out to determine the size of this spec.
|
||||
* @param background A layoutable object that is laid out behind the child. If this is nil, the background is omitted.
|
||||
* @param background A layoutElement object that is laid out behind the child. If this is nil, the background is omitted.
|
||||
*/
|
||||
+ (instancetype)backgroundLayoutSpecWithChild:(id<ASLayoutable>)child background:(nullable id<ASLayoutable>)background;
|
||||
+ (instancetype)backgroundLayoutSpecWithChild:(id<ASLayoutElement>)child background:(nullable id<ASLayoutElement>)background;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user