# `GSWindowController.activeLayer`

*Instance Property*

the currently active layer of the window

## Declaration

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

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

```python
activeLayer() -> GSLayer
```

## Return Value

The active layer.

## Discussion

This is only valid if one layer has direct focus. If more than one are selected, this returns nil.

