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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software