Skip to content

Commit 143d7c0

Browse files
author
farfromrefug
committed
fix(ui-canvas): ios fix for addRoundRect
1 parent 5daa772 commit 143d7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-canvas/canvas.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ export class Path implements IPath {
700700
}
701701
let cgPath;
702702
if (radii.length === 2) {
703-
cgPath = UIBezierPath.bezierPathWithRoundedRectByRoundingCornersCornerRadii(rect, UIRectCorner.AllCorners, CGSizeMake(radii[0], radii[1]));
703+
cgPath = UIBezierPath.bezierPathWithRoundedRectByRoundingCornersCornerRadii(rect, 0xffffffff as any /* UIRectCorner.AllCorners */, CGSizeMake(radii[0], radii[1]));
704704
} else {
705705
throw new Error('multi radii not implemented yet');
706706
}

0 commit comments

Comments
 (0)