# `GSLayer.shapeGroups`

*Instance Property*

The shape groups keyed by group identifier.

## Declaration

```swift
var shapeGroups: [String : GSShapeGroup] { get }
```

```objc
@property (readonly) NSDictionary<NSString *,GSShapeGroup *> * shapeGroups;
```

```python
shapeGroups() -> dict[str, GSShapeGroup]
```

## Discussion

The root group is keyed by the root group identifier.

## See Also

### Shape Groups

- [`GSLayer.rootGroup`](/Core/GlyphsCore/GSLayer/rootGroup) — A shape group containing all shapes of the layer.
- [`GSLayer reconfigureShapeGroupsSkippingPreconditionCheck:`](/Core/GlyphsCore/GSLayer/reconfigureShapeGroupsSkippingPreconditionCheck:) — Reconfigures the shape groups (setting their member ranges) and reorders `shapes` to match.

