iOS refact DoricLayout

This commit is contained in:
pengfei.zhou
2020-04-03 16:36:43 +08:00
committed by osborn
parent ca6a3284f2
commit abbe0ba377
32 changed files with 540 additions and 761 deletions

View File

@@ -23,8 +23,8 @@
#import "DoricDraggableNode.h"
@implementation DoricDraggableNode
- (DoricStackView *)build {
DoricStackView *stackView = [DoricStackView new];
- (UIView *)build {
UIView *stackView = [UIView new];
UIPanGestureRecognizer *gesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(onDrag:)];
[stackView addGestureRecognizer:gesture];
return stackView;
@@ -40,7 +40,7 @@ - (void)onDrag:(UIPanGestureRecognizer *)gesture {
[self callJSResponse:_onDragFunction, @(originalFrame.origin.x), @(originalFrame.origin.y), nil];
}
- (void)blendView:(DoricStackView *)view forPropName:(NSString *)name propValue:(id)prop {
- (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop {
if ([name isEqualToString:@"onDrag"]) {
_onDragFunction = prop;
} else {