# `GlyphsToolEvent activeLayers`

*Instance Method*

returns all layers that are currently active. That is mostly used for the ‘Select All Layers’ tool.

## Declaration

```swift
optional func activeLayers() -> [GSLayer]
```

```objc
- (NSArray<GSLayer *> *) activeLayers;
```

```python
activeLayers() -> list[GSLayer]
```

## Return Value

An array of layers

