Contents

animation(forKey:)

Returns the animation with the specified key.

Declaration

func animation(forKey key: String) -> CAAnimation?

Parameters

  • key:

    A string identifying a previously added animation.

Return Value

An animation object matching the key, or nil if no such animation exists.

Discussion

Attempting to modify any properties of the returned object results in undefined behavior.

See Also

Managing Animations