Appends a quadratic 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 control point of the curve.
This method appends a quadratic Bézier curve from the current point to the end point specified by the
end parameter. The relationships between the current point, control point, and end point are what defines the actual curve. Figure 1 shows some examples of quadratic curves and the approximate curve shape based on some sample points. The exact curvature of the segment involves a complex mathematical relationship between 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