feat:step1
This commit is contained in:
@@ -19,14 +19,7 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
||||
struct DoricMargin {
|
||||
CGFloat left;
|
||||
CGFloat right;
|
||||
CGFloat top;
|
||||
CGFloat bottom;
|
||||
};
|
||||
typedef struct DoricMargin DoricMargin;
|
||||
typedef UIEdgeInsets DoricMargin;
|
||||
|
||||
DoricMargin DoricMarginMake(CGFloat left, CGFloat top, CGFloat right, CGFloat bottom);
|
||||
|
||||
@@ -91,13 +84,16 @@ typedef NS_ENUM(NSInteger, DoricGravity) {
|
||||
|
||||
@interface UIView (DoricLayoutConfig)
|
||||
@property(nonatomic, strong) DoricLayoutConfig *layoutConfig;
|
||||
@end
|
||||
|
||||
@interface UIView (DoricTag)
|
||||
@property(nonatomic, copy) NSString *tagString;
|
||||
|
||||
- (UIView *)viewWithTagString:(NSString *)tagString;
|
||||
@end
|
||||
|
||||
- (CGSize)targetLayoutSize;
|
||||
|
||||
@interface UIView (DoricLayouts)
|
||||
- (void)layoutSelf;
|
||||
|
||||
- (CGSize)measureSize:(CGSize)targetSize;
|
||||
@end
|
||||
@end
|
||||
Reference in New Issue
Block a user