---
title: "init(keyPath:)"
framework: quartzcore
role: symbol
role_heading: Initializer
path: "quartzcore/capropertyanimation/init(keypath:)"
---

# init(keyPath:)

Creates and returns an CAPropertyAnimation instance for the specified key path.

## Declaration

```swift
convenience init(keyPath path: String?)
```

## Parameters

- `path`: The key path of the property to be animated.

## Return Value

Return Value A new instance of CAPropertyAnimation with the key path set to keyPath.
