To perform a consistent set of actions, you need to use sequence.
When the action executes, the first action in the sequence starts and runs to completion. Subsequent actions in the sequence run in a similar fashion until all of the actions in the sequence have executed. The duration of the sequence action is the sum of the durations of the actions in the sequence.
This action is reversible; It creates a new sequence of actions that reverses the order of the actions. Each action in the reversed sequence is itself reversed. For example, if an action sequence is {1,2,3}, the reversed sequence would be {3R, 2R, 1R}.
Language Swift programming
Help tutorial swift for Xcode