LWKActionGroup

public class LWKActionGroup : LWKAction, LWKTimeableParent, LWKTimeableChild

An action that organizes playback of other actions.

Grouped actions are contained in LWKActionGroup.actions, and the group will end when all contained actions have completed running a number of times defined by LWKActionGroup.repeatCount.

Calling LWKAction.stop() on an LWKActionGroup with stop any running child actions.

Note that actions can only be in one group at a time, so adding actions to a group will remove it from any group it was previously in.

Groups can be nested, and since repeats occur after the child actions complete, a child action’s delegate might get multiple calls to LWKActionDelegate.actionDidEnd(_:finished:) for a single run of LWKActionGroup

  • The number of full runthroughs of all children actions before completing.

    Declaration

    Swift

    public var repeatCount: UInt
  • An array of actions to trigger when the group is run.

    Declaration

    Swift

    public private(set) var actions: [LWKAction]
  • Declaration

    Swift

    public override func stop()