# `GSLayer.annotations`

*Instance Property*

The annotations stored on the layer.

## Declaration

```swift
var annotations: [GSAnnotation] { get set }
```

```objc
@property (nonatomic, strong) NSArray<GSAnnotation *> * annotations;
```

[See also `annotations` in the Python API](https://docu.glyphsapp.com/#GSLayer.annotations)

```python
pyobjc_instanceMethods.annotations() -> list[GSAnnotation]
pyobjc_instanceMethods.setAnnotations_(annotations: list[GSAnnotation])
```

## Discussion

Use the annotation mutation methods to preserve ownership, undo, layer change notifications, and selection state.

## See Also

### Annotations

- [`GSLayer countOfAnnotations`](/Core/GlyphsCore/GSLayer/countOfAnnotations) — The number of annotations.
- [`GSLayer objectInAnnotationsAtIndex:`](/Core/GlyphsCore/GSLayer/objectInAnnotationsAtIndex:) — The annotation at an index.

