feat:step2

This commit is contained in:
pengfei.zhou
2019-11-27 15:28:39 +08:00
parent bb9e6671f6
commit af8a455d46
4 changed files with 58 additions and 251 deletions

View File

@@ -61,17 +61,13 @@ typedef NS_ENUM(NSInteger, DoricGravity) {
@interface DoricLayoutContainer : UIView
@property(nonatomic, assign) DoricGravity gravity;
- (void)layout:(CGSize)targetSize;
- (CGSize)sizeContent:(CGSize)size;
@end
@interface DoricStackView : DoricLayoutContainer
@end
@interface DoricLinearView : DoricLayoutContainer
@property(nonatomic, assign) DoricGravity gravity;
@property(nonatomic, assign) CGFloat space;
@end
@@ -93,7 +89,9 @@ typedef NS_ENUM(NSInteger, DoricGravity) {
@end
@interface UIView (DoricLayouts)
- (void)layoutSelf;
- (void)layoutSelf:(CGSize)targetSize;
- (CGSize)measureSize:(CGSize)targetSize;
- (void)doricLayoutSubviews;
@end