---
title: "line(start:control:end:)"
framework: paperkit
role: symbol
role_heading: Type Method
path: "paperkit/shapemarkup/shape-swift.enum/line(start:control:end:)"
---

# line(start:control:end:)

A quadratic Bézier curve line.

## Declaration

```swift
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.
