Contents

init(start:control:end:)

Create a new quadratic Bézier curve line.

Declaration

init(start: CGPoint, control: CGPoint? = nil, end: CGPoint)

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.