# `GSLayer.bezierPath`

*Instance Property*

A cached representation of the layer’s closed path shapes.

## Declaration

```swift
var bezierPath: NSBezierPath? { get set }
```

```objc
@property (nonatomic, strong) NSBezierPath * bezierPath;
```

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

```python
pyobjc_instanceMethods.bezierPath() -> NSBezierPath
pyobjc_instanceMethods.setBezierPath_(bezierPath: NSBezierPath)
```

## Discussion

Components and open paths are excluded. Returns `nil` when the layer has no shapes.

## See Also

### Bezier Paths

- [`GSLayer.openBezierPath`](/Core/GlyphsCore/GSLayer/openBezierPath) — A cached representation of the layer’s open path shapes.
- [`GSLayer.selectionPath`](/Core/GlyphsCore/GSLayer/selectionPath) — A cached representation of the selected outline segments.
- [`GSLayer drawBezierPath`](/Core/GlyphsCore/GSLayer/drawBezierPath) — A representation of the closed paths and component outlines.
- [`GSLayer drawBezierPath:hasPaths:`](/Core/GlyphsCore/GSLayer/drawBezierPath:hasPaths:) — Creates a representation of the closed paths and component outlines while tracking component recursion.
- [`GSLayer drawOpenBezierPath`](/Core/GlyphsCore/GSLayer/drawOpenBezierPath) — A representation of the open paths in the layer and its components.
- [`GSLayer drawOpenBezierPathFast`](/Core/GlyphsCore/GSLayer/drawOpenBezierPathFast) — Returns the cached representation of open paths without updating it.

