Appends a cubic Bézier curve to the receiver’s path.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The end point of the curve.
The first control point to use when computing the curve.
The second control point to use when computing the curve.
This method appends a cubic Bézier curve from the current point to the end point specified by the
end parameter. The two control points define the curvature of the segment. Figure 1 shows an approximation of a cubic Bézier curve given a set of initial points. The exact curvature of the segment involves a complex mathematical relationship between all of the points and is well documented online.
You must set the path’s current point (using the
move(to:) method or through the previous creation of a line or curve segment) before you call this method. If the path is empty, this method does nothing. After adding the curve segment, this method updates the current point to the value in