iOS view render
This commit is contained in:
49
iOS/Pod/Classes/Shader/DoricViewContainer.m
Normal file
49
iOS/Pod/Classes/Shader/DoricViewContainer.m
Normal file
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// DoricViewContainer.m
|
||||
// Doric
|
||||
//
|
||||
// Created by pengfei.zhou on 2019/7/30.
|
||||
//
|
||||
|
||||
#import "DoricViewContainer.h"
|
||||
#import <objc/runtime.h>
|
||||
|
||||
@implementation DoricRect
|
||||
@end
|
||||
|
||||
@implementation LayoutParams
|
||||
@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
|
||||
|
||||
@end
|
||||
|
||||
@implementation VLayout
|
||||
|
||||
@end
|
||||
|
||||
@implementation HLayout
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user