move(to:transform:)
Begins a new subpath at the specified point.
Declaration
func move(to point: CGPoint, transform: CGAffineTransform = .identity)Parameters
- point:
The point, in user space coordinates, at which to start a new subpath.
- transform:
An affine transform to apply to the point before adding to the path. Defaults to the identity transform if not specified.
Discussion
The specified point becomes the start point of a new subpath. The current point is set to this start point.
See Also
Constructing a Graphics Path
addLine(to:transform:)addLines(between:transform:)addRect(_:transform:)addRects(_:transform:)addEllipse(in:transform:)addRoundedRect(in:cornerWidth:cornerHeight:transform:)addArc(center:radius:startAngle:endAngle:clockwise:transform:)addArc(tangent1End:tangent2End:radius:transform:)addRelativeArc(center:radius:startAngle:delta:transform:)addCurve(to:control1:control2:transform:)addQuadCurve(to:control:transform:)addPath(_:transform:)closeSubpath()