CurveTo
internal struct CurveTo : PathCommand
The PathCommand
that corresponds to the SVG C
or c
command
-
Adds a cubic Bezier curve to
path
. The path will end up atCGPoint(self.coordinateBuffer[4], self.coordinateBuffer[5])
. The control point forpath.currentPoint
will beCGPoint(self.coordinateBuffer[0], self.coordinateBuffer[1])
. Then controle point for the end point will be CGPoint(self.coordinateBuffer[2], self.coordinateBuffer[3])Declaration
Swift
internal func execute(on path: UIBezierPath, previousCommand: PreviousCommand? = nil)