---
title: animationKeys()
framework: quartzcore
role: symbol
role_heading: Instance Method
path: quartzcore/calayer/animationkeys()
---

# animationKeys()

Returns an array of strings that identify the animations currently attached to the layer.

## Declaration

```swift
func animationKeys() -> [String]?
```

## Return Value

Return Value An array of NSString objects identifying the current animations.

## Discussion

Discussion The order of the array matches the order in which animations will be applied to the layer.

## See Also

### Layer animations

- [add(_:forKey:)](quartzcore/calayer/add(_:forkey:).md)
- [animation(forKey:)](quartzcore/calayer/animation(forkey:).md)
- [removeAllAnimations()](quartzcore/calayer/removeallanimations().md)
- [removeAnimation(forKey:)](quartzcore/calayer/removeanimation(forkey:).md)
