Enumeration Case

SKActionTimingMode.easeInEaseOut

Specifies ease-in ease-out pacing. An ease-in ease-out animation begins slowly, accelerates through the middle of its duration, and then slows again before completing.

Declaration

case easeInEaseOut = 3

Discussion

By creating two separate actions, a moveTo(x:duration:) and a moveTo(y:duration:), and setting the former to SKActionTimingMode.easeInEaseOut, you can visualize the effect of this timing mode by tracing the path of a circular shape node running the actions in a group:

Visualizing ease-in ease-out pacing

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