# `GSLayer objectInAnnotationsAtIndex:`

*Instance Method*

The annotation at an index.

## Declaration

```swift
func annotation(at idx: UInt) -> GSAnnotation?
```

```objc
- (GSAnnotation *) objectInAnnotationsAtIndex:(NSUInteger) idx;
```

```python
objectInAnnotationsAtIndex_(idx: int) -> GSAnnotation
```

## Return Value

The annotation, or `nil` if the index is out of bounds.

## See Also

### Annotations

- [`GSLayer.annotations`](/Core/GlyphsCore/GSLayer/annotations) — The annotations stored on the layer.
- [`GSLayer countOfAnnotations`](/Core/GlyphsCore/GSLayer/countOfAnnotations) — The number of annotations.

