---
title: frameIndex
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/frame/frameindex
---

# frameIndex

The sequential index number of a frame.

## Declaration

```swift
var frameIndex: LayerFrameIndex { get }
```

## Discussion

Discussion The layer assigns a unique index number to each frame, starting at the first frame and incrementing the index by 1 for each new frame.

## See Also

### Getting frame-related details

- [LayerFrameIndex](compositorservices/layerframeindex.md)
- [CompositorFrameIndex](compositorservices/compositorframeindex.md)
