iOS render

This commit is contained in:
pengfei.zhou
2019-07-31 14:18:20 +08:00
parent 20986340d7
commit 674335324b
24 changed files with 452 additions and 34 deletions

View File

@@ -7,9 +7,6 @@
#import "UIView+Doric.h"
#define LAYOUT_MATCH_PARENT -1
#define LAYOUT_WRAP_CONTENT -2
typedef NS_ENUM(NSInteger,DoricGravity) {
SPECIFIED = 1,
START = 1 << 1,
@@ -25,6 +22,12 @@ typedef NS_ENUM(NSInteger,DoricGravity) {
CENTER = CENTER_X | CENTER_Y,
};
typedef NS_ENUM(NSInteger,DoricLayoutDesc) {
LAYOUT_DEFAULT = 0,
LAYOUT_MATCH_PARENT = -1,
LAYOUT_WRAP_CONTENT = -2,
};
NS_ASSUME_NONNULL_BEGIN
@interface DoricRect :NSObject
@@ -35,7 +38,10 @@ NS_ASSUME_NONNULL_BEGIN
@end
@interface LayoutParams : NSObject
@property (nonatomic) DoricLayoutDesc width;
@property (nonatomic) DoricLayoutDesc height;
@property (nonatomic) DoricGravity alignment;
@property (nonatomic,strong) DoricRect *margin;
@end