From 07a958c3bd9a8457e20b039962d308f8f3411e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 22 Jun 2021 17:42:27 +0800 Subject: [PATCH] fix: iOS dynamic set gradient props does not take effect --- doric-iOS/Pod/Classes/Shader/DoricViewNode.m | 1 + 1 file changed, 1 insertion(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m index 8fd1d563..93a37720 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m @@ -168,6 +168,7 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop self.gradientSize = CGSizeZero; } else if ([prop isKindOfClass:[NSDictionary class]]) { self.gradientProps = prop; + self.gradientSize = CGSizeZero; } } else if ([name isEqualToString:@"alpha"]) { view.alpha = [prop floatValue];