# `GSLayer addShape:`

*Instance Method*

Adds a shape at the top of the layer.

## Declaration

```swift
func addShape(_ shape: GSShape)
```

```objc
- (void) addShape:(GSShape *) shape;
```

```python
addShape_(shape: GSShape)
```

## Discussion

The shape receives this layer as its parent.

## See Also

### Adding Shapes

- [`GSLayer insertObject:inShapesAtIndex:`](/Core/GlyphsCore/GSLayer/insertObject:inShapesAtIndex:) — Inserts a shape at the given linear shape index.
- [`GSLayer addShapeFast:`](/Core/GlyphsCore/GSLayer/addShapeFast:) — Adds a shape at the top of the layer without undo registration or KVO notifications.
- [`GSLayer addShapes:`](/Core/GlyphsCore/GSLayer/addShapes:) — Adds shapes at the top of the layer.
- [`GSLayer addShapesFast:`](/Core/GlyphsCore/GSLayer/addShapesFast:) — Adds shapes at the top of the layer without undo registration or KVO notifications.

