Skip to content

Commit ec654b9

Browse files
committed
fix(ios): wrong parameters order
1 parent 33f0a07 commit ec654b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugin/platforms/ios/src/UIBezierPath+Elements.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ - (void) addCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUIn
135135
[self moveToPoint:(CGPoint)CGPointMake(points[offset], points[offset+1])];
136136
for (int i = offset+2; i < count; i+=6)
137137
{
138-
[self addCurveToPoint:CGPointMake(points[i], points[i + 1]) controlPoint1:CGPointMake(points[i + 2], points[i + 3]) controlPoint2:CGPointMake(points[i + 4], points[i + 5])];
138+
[self addCurveToPoint:CGPointMake(points[i + 4], points[i + 5]) controlPoint1:CGPointMake(points[i], points[i + 1]) controlPoint2:CGPointMake(points[i + 2], points[i + 3])];
139139
}
140140
if (close) {
141141
[self closePath];

0 commit comments

Comments
 (0)