This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/iOS/Pod/Classes/Shader/DoricViewContainer.m

56 lines
845 B
Mathematica
Raw Normal View History

2019-07-30 19:07:46 +08:00
//
// DoricViewContainer.m
// Doric
//
// Created by pengfei.zhou on 2019/7/30.
//
#import "DoricViewContainer.h"
#import <objc/runtime.h>
@implementation DoricRect
@end
@implementation LayoutParams
2019-07-30 21:05:27 +08:00
- (instancetype)init {
if (self = [super init]) {
_margin = [[DoricRect alloc] init];
}
return self;
}
2019-07-30 19:07:46 +08:00
@end
@implementation UIView(DoricContainer)
- (LayoutParams *)layoutParams {
return objc_getAssociatedObject(self, _cmd);
}
- (void)setLayoutParams:(LayoutParams *)layoutParams {
objc_setAssociatedObject(self, @selector(layoutParams), layoutParams, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
- (void)layout {
}
- (void)measure {
if(self.layoutParams) {
}
}
@end
@implementation Stack
2019-07-30 21:05:27 +08:00
@end
2019-07-30 19:07:46 +08:00
2019-07-30 21:05:27 +08:00
@implementation LinearLayout
2019-07-30 19:07:46 +08:00
@end
@implementation VLayout
@end
@implementation HLayout
@end