Skip to content

Instantly share code, notes, and snippets.

@coreyroach
coreyroach / SKStackView.h
Created November 6, 2013 23:28
This is a quick and simple SpriteKit scene stack. Similar to a UINavigationController, this helps to manage navigating from one scene to the next and back by pushing or popping scenes from the stack.
#import <SpriteKit/SpriteKit.h>
@interface SKStackView : SKView
@property (nonatomic, strong) NSArray *scenes;
@property (nonatomic, strong) SKTransition *pushTransition;
@property (nonatomic, strong) SKTransition *popTransition;
@property (nonatomic) SKSceneScaleMode defaultScaleMode;
@property (nonatomic) CGFloat transitionDuration;
@property (nonatomic) BOOL useDefaultScaleMode;