---
title: keyPath
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/capropertyanimation/keypath
---

# keyPath

Specifies the key path the receiver animates.

## Declaration

```swift
var keyPath: String? { get set }
```

## Discussion

Discussion The key path is relative to the layer the receiver is attached to.

## See Also

### Related Documentation

- [Core Animation Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction.md)
