---
title: presentationFrameIndex
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/drawable/presentationframeindex
---

# presentationFrameIndex

The sequential index of a drawable’s frame.

## Declaration

```swift
var presentationFrameIndex: CompositorFrameIndex { get }
```

## Discussion

Discussion When your immersive space becomes visible, you start drawing frames of content. Compositor Services assigns a sequential index to each frame to indicate its position in the final output. You can use these indexes to differentiate frames during drawing or predict future frame indexes. For example, you might start playback of an audio file when a specific frame appears.

## See Also

### Synchronizing the drawing operation

- [frameTiming](compositorservices/layerrenderer/drawable/frametiming.md)
