# `GSLayer finishDrawing`

*Instance Method*

Finishes direct pen drawing prepared by [`GSLayer prepareDrawing`](/Core/GlyphsCore/GSLayer/prepareDrawing).

## Declaration

```swift
func finishDrawing()
```

```objc
- (void) finishDrawing;
```

```python
finishDrawing()
```

## See Also

### Drawing State

- [`GSLayer.secondaryPath`](/Core/GlyphsCore/GSLayer/secondaryPath) — Auxiliary outlines generated by the most recent full Bézier path preparation.
- [`GSLayer.extraHandles`](/Core/GlyphsCore/GSLayer/extraHandles) — Interactive handles generated by the most recent full Bézier path preparation.
- [`GSLayer.currentDrawingAttributes`](/Core/GlyphsCore/GSLayer/currentDrawingAttributes) — The shape attributes applied to newly drawn shapes.
- [`GSLayer setCurrentDrawingAttribute:forKey:`](/Core/GlyphsCore/GSLayer/setCurrentDrawingAttribute:forKey:) — Sets or removes an attribute applied to newly drawn shapes.
- [`GSLayer addCurrentDrawingAttributes:`](/Core/GlyphsCore/GSLayer/addCurrentDrawingAttributes:) — Adds shape attributes applied to newly drawn shapes.
- [`GSLayer prepareDrawing`](/Core/GlyphsCore/GSLayer/prepareDrawing) — Prepares path component hints for direct pen drawing.

