line(start:control:end:)
A quadratic Bézier curve line.
Declaration
static func line(start: CGPoint, control: CGPoint? = nil, end: CGPoint) -> ShapeMarkup.ShapeParameters
- start:
The starting point in unit coordinate space.
- control:
The control point that defines the curve in unit coordinate space. Defaults to
nilwhich creates a straight line without a middle control point. - end:
The ending point in unit coordinate space.