---
title: "getKeyframeTime(for:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skkeyframesequence/getkeyframetime(for:)"
---

# getKeyframeTime(for:)

Gets the time for a keyframe in the sequence.

## Declaration

```swift
func getKeyframeTime(for index: Int) -> CGFloat
```

## Parameters

- `index`: The index of the keyframe.

## Return Value

Return Value The time value for the keyframe.

## See Also

### Sequence Information

- [count()](spritekit/skkeyframesequence/count().md)
- [getKeyframeValue(for:)](spritekit/skkeyframesequence/getkeyframevalue(for:).md)
