# `GSLayer.locked`

*Instance Property*

Whether clients should prevent editing the layer.

## Declaration

```swift
var isLocked: Bool { get set }
```

```objc
@property BOOL locked;
```

```python
locked() -> bool
setLocked_(locked: bool)
```

## See Also

### Layer State

- [`GSLayer.active`](/Core/GlyphsCore/GSLayer/active) — Whether the layer participates in interpolation and export.
- [`GSLayer.visible`](/Core/GlyphsCore/GSLayer/visible) — Whether the layer is displayed with other layers in Edit view.

