Type Alias


The signature for a block that manages animation timing, used by the timingFunction property.


typealias SCNActionTimingFunction = (Float) -> Float


The block takes a single parameter:


A fraction of the action’s The input value for the timing function, as determined by the timingMode property and the action’s current progress.

Your block must return a floating-point value between 0.0 and 1.0, where 0.0 represents the starting state of the action’s animation and 1.0 represents the end state.

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