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

# getKeyframeValue(for:)

Gets the value for a keyframe in the sequence.

## Declaration

```swift
func getKeyframeValue(for index: Int) -> Any
```

## Parameters

- `index`: The index of the keyframe.

## Return Value

Return Value The value object for the keyframe.

## See Also

### Sequence Information

- [count()](spritekit/skkeyframesequence/count().md)
- [getKeyframeTime(for:)](spritekit/skkeyframesequence/getkeyframetime(for:).md)
