# `GSLayer addCurrentDrawingAttributes:`

*Instance Method*

Adds shape attributes applied to newly drawn shapes.

## Declaration

```swift
func addCurrentDrawingAttributes(_ attrs: [GSShapeKey : Any] = [:])
```

```objc
- (void) addCurrentDrawingAttributes:(NSDictionary<NSString *,id> *) attrs;
```

```python
addCurrentDrawingAttributes_(attrs: dict[str, object])
```

## 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 prepareDrawing`](/Core/GlyphsCore/GSLayer/prepareDrawing) — Prepares path component hints for direct pen drawing.
- [`GSLayer finishDrawing`](/Core/GlyphsCore/GSLayer/finishDrawing) — Finishes direct pen drawing prepared by [`GSLayer prepareDrawing`](/Core/GlyphsCore/GSLayer/prepareDrawing).

