Skip to content

Instantly share code, notes, and snippets.

@geykel
Last active November 29, 2016 02:01
Show Gist options
  • Save geykel/5fc98e73633d4f632701 to your computer and use it in GitHub Desktop.
Save geykel/5fc98e73633d4f632701 to your computer and use it in GitHub Desktop.
import UIKit
import SpriteKit
class GameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// 1
let gameScene = GameScene(size: CGSize(width: 2048, height: 1536))
gameScene.scaleMode = .aspectFill
// 2
let skView = view as! SKView
// 3
skView.presentScene(gameScene)
}
// 4
override var prefersStatusBarHidden : Bool {
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment