Type Method

setAnimationTimingFunction(_:)

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

Declaration

class func setAnimationTimingFunction(_ function: CAMediaTimingFunction?)

Parameters

function

An instance of CAMediaTimingFunction.

Discussion

This is a convenience method that sets the CAMediaTimingFunction for the value(forKey:) value of the kCATransactionAnimationTimingFunction key.

See Also

Overriding Animation Duration and Timing

class func animationDuration() -> CFTimeInterval

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

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.