---
title: Path.Element.closeSubpath
framework: swiftui
role: symbol
role_heading: Case
path: swiftui/path/element/closesubpath
---

# Path.Element.closeSubpath

A line from the start point of the current subpath (if any) to the current point, which terminates the subpath.

## Declaration

```swift
case closeSubpath
```

## Discussion

Discussion After closing the subpath, the current point becomes undefined.

## See Also

### Getting path elements

- [Path.Element.curve(to:control1:control2:)](swiftui/path/element/curve(to:control1:control2:).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)
