Skip to content

Commit 2534537

Browse files
committed
fix(ios): clipPath rendering, fixes #1131
1 parent c63f9e2 commit 2534537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/Elements/RNSVGGroup.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ - (void)renderGroupTo:(CGContextRef)context rect:(CGRect)rect
3939
__block CGRect bounds = CGRectNull;
4040

4141
[self traverseSubviews:^(UIView *node) {
42-
if ([node isKindOfClass:[RNSVGMask class]]) {
42+
if ([node isKindOfClass:[RNSVGMask class]] || [node isKindOfClass:[RNSVGClipPath class]]) {
4343
// no-op
4444
} else if ([node isKindOfClass:[RNSVGNode class]]) {
4545
RNSVGNode* svgNode = (RNSVGNode*)node;
@@ -84,10 +84,10 @@ - (void)renderGroupTo:(CGContextRef)context rect:(CGRect)rect
8484

8585
CGAffineTransform current = CGContextGetCTM(context);
8686
CGAffineTransform svgToClientTransform = CGAffineTransformConcat(current, self.svgView.invInitialCTM);
87-
87+
8888
self.ctm = svgToClientTransform;
8989
self.screenCTM = current;
90-
90+
9191
CGAffineTransform transform = CGAffineTransformConcat(self.matrix, self.transforms);
9292
CGPoint mid = CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds));
9393
CGPoint center = CGPointApplyAffineTransform(mid, transform);

0 commit comments

Comments
 (0)