So there is a partial answer to this question for Obj. C. and I am just asking the mechanics of the same idea within Swift. Furthermore I want to compare and contrast switching ViewControllers and switching scenes as a way of switching between a game and its MainMenu. Presenting a scene in SpriteKit without discarding the previous?
In the above section, the author said that scenes are completely discarded when I present a new scene in that ViewController
, is this true in spritekit/swift? What I am doing is I have a couple of scenes (GameScene, MainMenuScene, OptionsScene, etc.) That I am constantly switching between as a way of switching views entirely. Will this delete all data associated with that instance of GameScene? I don't want any remnants of that data slowing down my game over time. Furthermore, some people recommend switching ViewControllers instead of scenes for the idea of MainMenu, etc. What are the positives and negatives to each method?