Contents

push(with:duration:)

Creates a transition where the new scene moves in, pushing the old scene out of the view.

Declaration

class func push(with direction: SKTransitionDirection, duration sec: TimeInterval) -> SKTransition

Parameters

  • direction:

    The direction of the push. Possible values are described in Sktransitiondirection.

  • sec:

    The duration of the transition.

Return Value

A new transition.

See Also

Creating Transitions