# `GSLayer elementDidChange:`

*Instance Method*

Notifies the layer that one of its elements changed.

## Declaration

```swift
func elementDidChange(_ element: Any?)
```

```objc
- (void) elementDidChange:(id) element;
```

```python
elementDidChange_(element: object)
```

## Parameters

- `element` — The changed element.

## Discussion

Pass `nil` when the changed element is not known.

## See Also

### Marking Updates

- [`GSLayer setNeedUpdateShapes`](/Core/GlyphsCore/GSLayer/setNeedUpdateShapes) — Marks representations derived from the layer geometry as needing an update.
- [`GSLayer setNeedUpdateMetrics`](/Core/GlyphsCore/GSLayer/setNeedUpdateMetrics) — Marks the cached side bearings as needing an update.
- [`GSLayer setNeedUpdateMetricsFast`](/Core/GlyphsCore/GSLayer/setNeedUpdateMetricsFast) — Marks the cached side bearings as needing an update without locking.
- [`GSLayer preloadContent`](/Core/GlyphsCore/GSLayer/preloadContent) — Loads content referenced by components in preparation for subsequent access.

