# `GSShapeGroup rootGroupWithParent:`

*Type Method*

Creates the root group for a layer.

## Declaration

```swift
class func rootGroup(withParent parent: GSLayer?) -> Self
```

```objc
+ (instancetype) rootGroupWithParent:(GSLayer *) parent;
```

```python
rootGroupWithParent_(parent: GSLayer) -> GSShapeGroup
```

## Parameters

- `parent` — The layer that owns the root group.

## Discussion

A layer has exactly one root group.

## See Also

### Creating a Shape Group

- [`GSShapeGroup initWithId:`](/Core/GlyphsCore/GSShapeGroup/initWithId:) — Creates a new shapes group with a given ID.

