Contents

line(start:control:end:)

A quadratic Bézier curve line.

Declaration

static func line(start: CGPoint, control: CGPoint? = nil, end: CGPoint) -> ShapeMarkup.Shape

Parameters

  • start:

    The starting point in unit coordinate space.

  • control:

    The control point that defines the curve in unit coordinate space. Defaults to nil which creates a straight line without a middle control point.

  • end:

    The ending point in unit coordinate space.