# `GSComponent decompose`

*Instance Method*

Replaces the component in its containing layer with transformed copies of the base-glyph layer contents.

## Declaration

```swift
func decompose()
```

```objc
- (void) decompose;
```

[See also `decompose` in the Python API](https://docu.glyphsapp.com/#GSComponent.decompose)

```python
pyobjc_instanceMethods.decompose()
```

## Discussion

Nested components remain components. Applicable anchors and hints are transferred to the containing layer.

## See Also

### Decomposition

- [`GSComponent decomposedPathsRemovingOverlap:`](/Core/GlyphsCore/GSComponent/decomposedPathsRemovingOverlap:) — Detached paths produced by flattening the transformed component contents.

