title: How to reload GameScene in SpriteKit
body: <p>I have a simple game and when the time is up the game is over. I have a restart button which currently just reloads the GameScene but for some reason my Nodes appear halfway down and halfway to the left of the screen. I can still use the full space of the screen to play the game though.</p>
  
  <p>The images below show the game while working, end game state and then after reloading the GameScene.</p>
  
  <p>I'm not sure how to fix this or what code to provide.</p>
  
  <p>This is my function for reloading the GameScene:</p>
  
  <pre><code>func goToGameScene(){
      let gameScene:GameScene = GameScene(size: self.view!.bounds.size) 
      let transition = SKTransition.fade(withDuration: 1.0)
      gameScene.scaleMode = SKSceneScaleMode.fill
      self.view!.presentScene(gameScene, transition: transition)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/necLW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/necLW.png" alt="What the game should look like"></a></p>
  
  <p><a href="https://i.stack.imgur.com/xtbny.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xtbny.png" alt="End Game"></a></p>
  
  <p><a href="https://i.stack.imgur.com/l3AOI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l3AOI.png" alt="After reloading the GameScene"></a></p>