iOS Developer Library — Pre-Release

Developer

SpriteKit Framework Reference SKTransition Class Reference

Options
Deployment Target:

On This Page
Language:

SKTransition

An SKTransition object is used to perform an animated transition between a SKScene object already presented by an SKView object and a new incoming scene. More...

Inheritance


Conforms To


Import Statement


Swift

import SpriteKit

Objective-C

@import SpriteKit;

Availability


Available in iOS 7.0 and later.
  • A Boolean value that determines whether the incoming scene is paused during the transition.

    Declaration

    Swift

    var pausesIncomingScene: Bool

    Objective-C

    @property(nonatomic) BOOL pausesIncomingScene

    Discussion

    The default value is YEStrue.

    Import Statement

    Swift

    import SpriteKit

    Availability

    Available in iOS 7.0 and later.

  • A Boolean value that determines whether the outgoing scene is paused during the transition.

    Declaration

    Swift

    var pausesOutgoingScene: Bool

    Objective-C

    @property(nonatomic) BOOL pausesOutgoingScene

    Discussion

    The default value is YEStrue.

    Import Statement

    Swift

    import SpriteKit

    Availability

    Available in iOS 7.0 and later.

  • For some transitions, the direction in which the transition is performed.

    Declaration

    Swift

    enum SKTransitionDirection : Int { case Up case Down case Right case Left }

    Objective-C

    typedef NS_ENUM (NSInteger, SKTransitionDirection ) { SKTransitionDirectionUp, SKTransitionDirectionDown, SKTransitionDirectionRight, SKTransitionDirectionLeft, };

    Constants

    • Up

      SKTransitionDirectionUp

      The transition goes up.

      Available in iOS 7.0 and later.

    • Down

      SKTransitionDirectionDown

      The transition goes down.

      Available in iOS 7.0 and later.

    • Right

      SKTransitionDirectionRight

      The transition goes right.

      Available in iOS 7.0 and later.

    • Left

      SKTransitionDirectionLeft

      The transition goes left.

      Available in iOS 7.0 and later.

    Import Statement

    Swift

    import SpriteKit

    Availability

    Available in iOS 7.0 and later.