# `GSDrawStackFeature.GSDrawStackFeatureCompositionGroups`

*Type Property*

A composition groups combines multiple composition elements, allowing, for example, a mask to be applied to an entire group while maintaining the inner structure of the group. Otherwise, the members of the group are merged into a single path element.

## Declaration

```swift
static var compositionGroups: GSDrawStackFeature { get }
```

```objc
GSDrawStackFeatureCompositionGroups
```

```python
GSDrawStackFeatureCompositionGroups
```

## Discussion

Composition groups result from

- `GSGroupShape` shapes
- components, either if `GSDrawStackFeatureStaticComponents` is unsupported or the component is smart

Supporting this feature requires handling `GSDrawGroupSlice`.

