# `GSPenProtocol endPath`

*Instance Method*

End the current sub path, but don’t close it. You must call either pen.closePath() or pen.endPath() after each sub path.

## Declaration

```swift
func endPath()
```

```objc
- (void) endPath;
```

```python
endPath()
```

