# `GSLayer flattenOutlines`

*Instance Method*

Replaces the layer contents with their flattened path outlines and removes overlaps.

## Declaration

```swift
func flattenOutlines() -> Bool
```

```objc
- (BOOL) flattenOutlines;
```

```python
flattenOutlines() -> bool
```

## Return Value

Whether the outlines were flattened successfully.

## See Also

### Flattening Outlines

- [`GSLayer flattenOutlinesRemoveOverlap:origHints:secondaryPath:extraHandles:error:`](/Core/GlyphsCore/GSLayer/flattenOutlinesRemoveOverlap:origHints:secondaryPath:extraHandles:error:) — Replaces the layer contents with their flattened path outlines.
- [`GSLayer flattenOutlinesRemoveOverlap:origHints:supporting:secondaryPath:extraHandles:error:`](/Core/GlyphsCore/GSLayer/flattenOutlinesRemoveOverlap:origHints:supporting:secondaryPath:extraHandles:error:) — Replaces the layer contents with flattened path outlines for a drawing feature set.

