---
title: CGPathElementType.closeSubpath
framework: coregraphics
role: symbol
role_heading: Case
path: coregraphics/cgpathelementtype/closesubpath
---

# CGPathElementType.closeSubpath

The path element that closes and completes a subpath. The element does not contain any points. See the function closeSubpath().

## Declaration

```swift
case closeSubpath
```

## See Also

### Constants

- [CGPathElementType.moveToPoint](coregraphics/cgpathelementtype/movetopoint.md)
- [CGPathElementType.addLineToPoint](coregraphics/cgpathelementtype/addlinetopoint.md)
- [CGPathElementType.addQuadCurveToPoint](coregraphics/cgpathelementtype/addquadcurvetopoint.md)
- [CGPathElementType.addCurveToPoint](coregraphics/cgpathelementtype/addcurvetopoint.md)
