SpriteKit iPad view scaling
<p>I can't find anything about this when searching around so I decided to ask. </p>

<p>For some reason when I try to create a GameScene and try to scale it to the iPad according the suggestions around here. I get black borders around my view like so:</p>

<p><a href="https://i.stack.imgur.com/vtHD0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vtHD0.png" alt="enter image description here"></a></p>

<p>Here is my code:</p>

<pre><code> import UIKit
 import SpriteKit

 class GameViewController: UIViewController {

   var scene: GameScene!

   override func viewDidLoad() {
     super.viewDidLoad()

    let skView = view as! SKView
    skView.multipleTouchEnabled = false;

    scene = GameScene(size: skView.bounds.size)
    scene.scaleMode = .ResizeFill
    scene.backgroundColor = UIColor.whiteColor()

    print(scene.frame.size)
    skView.presentScene(scene)
  }

  override func shouldAutorotate() -&gt; Bool {
    return true
  }

  override func supportedInterfaceOrientations() -&gt; UIInterfaceOrientationMask {
    if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
      return .Landscape
    } else {
      return .AllButUpsideDown
    }
  }

  override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Release any cached data, images, etc that aren't in use.
  }

  override func prefersStatusBarHidden() -&gt; Bool {
    return true
  }
}
</code></pre>

<p>and this: </p>

<pre><code>import SpriteKit

class GameScene: SKScene {
  override func didMoveToView(view: SKView) {
    /* Setup your scene here */
    let testLabel = SKLabelNode(text: "Hello World!")
    testLabel.position = CGPoint(x: size.width/2, y: size.height/2)
    testLabel.fontColor = UIColor.blueColor()
    addChild(testLabel)
  }

  override func touchesBegan(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
    /* Called when a touch begins */

  }

  override func update(currentTime: CFTimeInterval) {
    /* Called before each frame is rendered */
  }
}
</code></pre>

<p>How can I get rid of the black borders around my view?</p>