Type Method

animationDuration()

Returns the animation duration used by all animations within this transaction group.

Declaration

class func animationDuration() -> CFTimeInterval

Return Value

An interval of time used as the duration.

Discussion

You can retrieve the animation duration for a specific transaction by calling the value(forKey:) method of the transaction object and asking for the kCATransactionAnimationDuration key.

See Also

Overriding Animation Duration and Timing

class func setAnimationDuration(CFTimeInterval)

Sets the animation duration used by all animations within this transaction group.

class func animationTimingFunction() -> CAMediaTimingFunction?

Returns the timing function used for all animations within this transaction group.

class func setAnimationTimingFunction(CAMediaTimingFunction?)

Sets the timing function used for all animations within this transaction group.