From ef2e27f2714328324e142a49148b65f04e3dae1e Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 21 Feb 2020 20:53:02 +0800 Subject: [PATCH] iOS:when set corner,apply clipToBounds to yes --- 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 d1bf1c51..7387eb78 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricViewNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricViewNode.m @@ -198,6 +198,7 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop view.layer.borderWidth = width; view.layer.borderColor = color.CGColor; } else if ([name isEqualToString:@"corners"]) { + self.view.clipsToBounds = YES; if ([prop isKindOfClass:NSNumber.class]) { view.layer.cornerRadius = [(NSNumber *) prop floatValue]; } else if ([prop isKindOfClass:NSDictionary.class]) {