mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Move validation code to ASLayoutValidation and add validation flag
This commit is contained in:
@@ -9,11 +9,17 @@
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class ASLayout;
|
||||
|
||||
// Enable or disable automatic layout validation
|
||||
#define LAYOUT_VALIDATION 0
|
||||
|
||||
extern void ASLayoutableValidateLayout(ASLayout *layout);
|
||||
|
||||
#pragma mark - ASLayoutableValidator
|
||||
|
||||
@protocol ASLayoutableValidator <NSObject>
|
||||
@@ -45,6 +51,9 @@ typedef void (^ASLayoutableBlockValidatorBlock)(id layout);
|
||||
|
||||
@end
|
||||
|
||||
/*
|
||||
* Not in use at the moment
|
||||
*/
|
||||
@interface ASLayoutablePreferredSizeValidator : NSObject<ASLayoutableValidator>
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user