# `GSLayer.currentDrawingAttributes`

*Instance Property*

The shape attributes applied to newly drawn shapes.

## Declaration

```swift
var currentDrawingAttributes: [GSShapeKey : Any]? { get set }
```

```objc
@property (nonatomic, strong) NSDictionary<NSString *,id> * currentDrawingAttributes;
```

```python
currentDrawingAttributes() -> dict[str, object]
setCurrentDrawingAttributes_(currentDrawingAttributes: 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 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.
- [`GSLayer finishDrawing`](/Core/GlyphsCore/GSLayer/finishDrawing) — Finishes direct pen drawing prepared by [`GSLayer prepareDrawing`](/Core/GlyphsCore/GSLayer/prepareDrawing).

