# `GSLayer addAnnotation:`

*Instance Method*

Adds an annotation.

## Declaration

```swift
func addAnnotation(_ anAnnotation: GSAnnotation)
```

```objc
- (void) addAnnotation:(GSAnnotation *) anAnnotation;
```

```python
addAnnotation_(anAnnotation: GSAnnotation)
```

## See Also

### Adding and Removing Annotations

- [`GSLayer removeAnnotation:`](/Core/GlyphsCore/GSLayer/removeAnnotation:) — Removes an annotation.
- [`GSLayer removeObjectFromAnnotationsAtIndex:`](/Core/GlyphsCore/GSLayer/removeObjectFromAnnotationsAtIndex:) — Removes the annotation at an index.

