Initializer

init(keyPath:)

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

Declaration

convenience init(keyPath path: String?)

Parameters

keyPath

The key path of the property to be animated.

Return Value

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