---
title: "Path.Element.curve(to:control1:control2:)"
framework: swiftui
role: symbol
role_heading: Case
path: "swiftui/path/element/curve(to:control1:control2:)"
---

# Path.Element.curve(to:control1:control2:)

A cubic Bézier curve from the previous current point to the given end-point, using the two control points to define the curve.

## Declaration

```swift
case curve(to: CGPoint, control1: CGPoint, control2: CGPoint)
```

## Discussion

Discussion The end-point of the curve becomes the new current point.

## See Also

### Getting path elements

- [Path.Element.closeSubpath](swiftui/path/element/closesubpath.md)
- [Path.Element.line(to:)](swiftui/path/element/line(to:).md)
- [Path.Element.move(to:)](swiftui/path/element/move(to:).md)
- [Path.Element.quadCurve(to:control:)](swiftui/path/element/quadcurve(to:control:).md)
