# `GSNode.layer`

*Instance Property*

The layer containing the node, or `nil` when the node is not part of a layer.

## Declaration

```swift
var layer: GSLayer? { get }
```

```objc
@property (nonatomic, readonly) GSLayer * layer;
```

```python
pyobjc_instanceMethods.layer() -> GSLayer
```

## See Also

### Owners

- [`GSNode.parent`](/Core/GlyphsCore/GSNode/parent) — The path containing the node, or `nil` when the node is not part of a path.
- [`GSNode.glyph`](/Core/GlyphsCore/GSNode/glyph) — The glyph containing the node, or `nil` when the node is not part of a glyph.

