# `GSLayer drawStack`

*Instance Method*

The painted drawing operations for the complete layer.

## Declaration

```swift
func drawStack() -> [GSDrawSlice<NSBezierPath>]
```

```objc
- (NSArray<GSDrawSlice<NSBezierPath *> *> *) drawStack;
```

```python
drawStack() -> list[GSDrawSlice<NSBezierPath *>]
```

## Discussion

The stack preserves masks, strokes, and composition groups.

## See Also

### Draw Stack

- [`GSLayer drawStackForGroup:supporting:penClass:secondaryPen:extraHandles:`](/Core/GlyphsCore/GSLayer/drawStackForGroup:supporting:penClass:secondaryPen:extraHandles:) — Creates painted drawing operations for a shape group.

