A block used to customize the timing function.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
If a timing function is provided, after the normal timing mode is applied, the result is sent to the timing function. The return
SKAction value of the timing function determines the actual time used to perform the animation.
The following code shows how you can create a custom timing function using
If the above code is combined with a vertical linear move action, the path taken by a node running this action describes the curve illustrated below: