# `GSPathPen decomposeComponentsUsingParentLayer:`

*Instance Method*

Decomposes the components on the layer of the pen and returns the shapes of the layer.

## Declaration

```swift
func decomposeComponents(usingParentLayer parentLayer: GSLayer?) -> [GSPath]
```

```objc
- (NSArray<GSPath *> *) decomposeComponentsUsingParentLayer:(GSLayer *) parentLayer;
```

```python
decomposeComponentsUsingParentLayer_(parentLayer: GSLayer) -> list[GSPath]
```

