# `GSSelectableElementProtocol.layer`

*Instance Property*

The layer associated with the object, or `nil` when no layer is available.

## Declaration

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

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

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

## See Also

### Owners

- [`GSSelectableElementProtocol parent`](/Core/GlyphsCore/GSSelectableElementProtocol/parent) — The object that directly contains the receiver, or `nil` when the receiver is detached.

