move(to:)
Moves the path’s current point to the specified location.
Declaration
func move(to point: CGPoint)Parameters
- point:
A point in the current coordinate system.
Discussion
This method implicitly ends the current subpath (if any) and sets the current point to the value in the point parameter. When ending the previous subpath, this method does not actually close the subpath. Therefore, the first and last points of the previous subpath are not connected to each other.
For many path operations, you must call this method before issuing any commands that cause a line or curve segment to be drawn.