SKActionTimingFunction
The signature for the custom timing block.
Declaration
typealias SKActionTimingFunction = (Float) -> FloatDiscussion
The block parameters are defined as follows:
timeThe input time, where
0.0represents the start time of the animation and1.0represents the end time of the animation.
The input value will be a value between 0.0 and 1.0, inclusive. The block must also return a value between 0.0 and 1.0. When the input time is 0.0, the output value should be 0.0. When the input time is 1.0, the output value should also be 1.0.