# `GSLayer lockWriteShapes`

*Instance Method*

Acquires the write lock for shapes.

## Declaration

```swift
func lockWriteShapes()
```

```objc
- (void) lockWriteShapes;
```

```python
lockWriteShapes()
```

## See Also

### Shape Locks

- [`GSLayer lockReadShapes`](/Core/GlyphsCore/GSLayer/lockReadShapes) — Acquires the read lock for shapes.
- [`GSLayer unlockReadShapes`](/Core/GlyphsCore/GSLayer/unlockReadShapes) — Releases the read lock for shapes.
- [`GSLayer unlockWriteShapes`](/Core/GlyphsCore/GSLayer/unlockWriteShapes) — Releases the write lock for shapes.

